Unwrap() public static method

位相のアンラッピングを行う。
public static Unwrap ( double phase ) : void
phase double 位相の入った配列
return void
Beispiel #1
0
        }        //GetMinimumPhase

        /// <summary>
        /// オールパス位相を求める。
        /// </summary>
        public double[] GetAllpassPhase()
        {
            double[] p = GetPhase();
            Spectrum.Unwrap(p);
            double[] mp = GetMinimumPhase();
            int      n  = p.Length;

            for (int i = 0; i < n; ++i)
            {
                p[i] -= mp[i];
            }

            return(p);
        }        //GetAllpassPhase
Beispiel #2
0
 /// <summary>
 /// 位相特性(アンラップしたもの)を取得。
 /// </summary>
 /// <param name="skip">最初 skip サンプルはアンラップしない</param>
 public double[] GetUnwrapPhase(int skip)
 {
     double[] tmp = this.GetPhase();
     Spectrum.Unwrap(tmp, skip);
     return(tmp);
 }