mirror of
https://github.com/DSheirer/sdrtrunk.git
synced 2026-11-12 16:47:31 -05:00
330 WIP - updates the demodulator viewer with an eye diagram and symbol
chart. Testing various configurations to see which yields the best PLL and symbol timing locks.
This commit is contained in:
@@ -18,6 +18,7 @@
|
||||
package io.github.dsheirer.buffer;
|
||||
|
||||
import org.apache.commons.math3.stat.descriptive.moment.Mean;
|
||||
import org.apache.commons.math3.stat.descriptive.moment.StandardDeviation;
|
||||
import org.apache.commons.math3.stat.descriptive.moment.Variance;
|
||||
import org.apache.commons.math3.stat.descriptive.rank.Max;
|
||||
import org.apache.commons.math3.stat.descriptive.rank.Min;
|
||||
@@ -30,6 +31,7 @@ import java.util.Arrays;
|
||||
*/
|
||||
public class DoubleCircularBuffer
|
||||
{
|
||||
private StandardDeviation mStandardDeviation;
|
||||
private Variance mVariance;
|
||||
private Max mMax;
|
||||
private Mean mMean;
|
||||
@@ -140,6 +142,16 @@ public class DoubleCircularBuffer
|
||||
return mMin.evaluate(mBuffer, 0, mBuffer.length);
|
||||
}
|
||||
|
||||
public double standardDeviation()
|
||||
{
|
||||
if(mStandardDeviation == null)
|
||||
{
|
||||
mStandardDeviation = new StandardDeviation();
|
||||
}
|
||||
|
||||
return mStandardDeviation.evaluate(mBuffer);
|
||||
}
|
||||
|
||||
/**
|
||||
* Calculates the variance of the values contained in this buffer
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user