public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, YoDouble alphaVariable, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry); this.alpha = 0.0; this.alphaVariable = alphaVariable; this.position = null; this.previousInput = new YoDouble(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }
public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, double alpha, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry); this.alpha = alpha; this.alphaVariable = null; this.position = null; this.previousInput = new YoDouble(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }
public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, DoubleYoVariable alphaVariable, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new BooleanYoVariable(name + "HasBeenCalled", registry); this.alpha = 0.0; this.alphaVariable = alphaVariable; this.position = null; this.previousInput = new DoubleYoVariable(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }
public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, YoDouble alphaVariable, YoDouble positionVariable, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry); this.alpha = 0.0; this.alphaVariable = alphaVariable; this.position = positionVariable; this.previousInput = new YoDouble(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }
public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, double alpha, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new BooleanYoVariable(name + "HasBeenCalled", registry); this.alpha = alpha; this.alphaVariable = null; this.position = null; this.previousInput = new DoubleYoVariable(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }
private static double[][] getFilteredCurve(double[][] input, ButterworthFilteredYoVariable butterworthFilteredYoVariable) { double[][] filteredCurve = new double[2][input[0].length]; butterworthFilteredYoVariable.reset(); for (int i = 0; i < input[0].length; i++) { butterworthFilteredYoVariable.update(input[1][i]); filteredCurve[0][i] = input[0][i]; filteredCurve[1][i] = butterworthFilteredYoVariable.getDoubleValue(); } return filteredCurve; }
public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, double alpha, YoDouble positionVariable, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new YoBoolean(name + "HasBeenCalled", registry); this.alpha = alpha; this.alphaVariable = null; this.position = positionVariable; this.previousInput = new YoDouble(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }
private static double[][] getFilteredCurve(double[][] input, ButterworthFilteredYoVariable butterworthFilteredYoVariable) { double[][] filteredCurve = new double[2][input[0].length]; butterworthFilteredYoVariable.reset(); for (int i = 0; i < input[0].length; i++) { butterworthFilteredYoVariable.update(input[1][i]); filteredCurve[0][i] = input[0][i]; filteredCurve[1][i] = butterworthFilteredYoVariable.getDoubleValue(); } return filteredCurve; }
public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, double alpha, DoubleYoVariable positionVariable, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new BooleanYoVariable(name + "HasBeenCalled", registry); this.alpha = alpha; this.alphaVariable = null; this.position = positionVariable; this.previousInput = new DoubleYoVariable(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }
public ButterworthFilteredYoVariable(String name, YoVariableRegistry registry, DoubleYoVariable alphaVariable, DoubleYoVariable positionVariable, ButterworthFilterType butterworthFilterType) { super(name, registry); this.hasBeenCalled = new BooleanYoVariable(name + "HasBeenCalled", registry); this.alpha = 0.0; this.alphaVariable = alphaVariable; this.position = positionVariable; this.previousInput = new DoubleYoVariable(name + "_prevIn", registry); this.butterworthFilterType = butterworthFilterType; reset(); }