コード例 #1
0
 /// <summary>
 /// The typical error of a signal as calculated from provided samples.
 /// The typical error is defined as ?
 /// </summary>
 /// <returns>
 /// The error.
 /// </returns>
 /// <param name='sampleData'>
 /// Data.
 /// </param>
 public static float TypicalError(float[] sampleData)
 {
     return(BaseMath.StandardDeviation(sampleData) / Mathf.Pow(sampleData.Length, 0.5f));
 }
コード例 #2
0
 /// <summary>
 /// Returns the signal to noise ratio of a signal from provided samples..
 /// </summary>
 /// <returns>
 /// The to noise ratio.
 /// </returns>
 /// <param name='sampleData'>
 /// Data.
 /// </param>
 public static float SignalToNoiseRatio(float[] sampleData)
 {
     return(BaseMath.MeanAverage(sampleData) / BaseMath.StandardDeviation(sampleData));
 }