Examples of FilterSettings


Examples of systole.processor.filters.FilterSettings

        double trband = Double.parseDouble(this.txtTransitionBandwidth.getText().replace(",", "."));
        int cutoff = ((Integer)this.spinCutoff.getValue()).intValue();
        int iterations = ((Integer)this.spinFilterIterations.getValue()).intValue();
        int order = ((Integer)this.spinFilterOrder.getValue()).intValue();

        FilterSettings newSettings = new FilterSettings();
        newSettings.createDefault(this.logic.getAnalysis().getSignalFrequency().getFrequency().doubleValue());
        newSettings.setDefaultIterations(iterations);
        newSettings.setFilt(new LowPass(newSettings.getFilt().getSamplingPeriod(), (new Double(cutoff)).doubleValue()));
        newSettings.setFConfig(newSettings.getFilt().config(order, atten, ripple, trband));
        newSettings.setFAlg(new RemezEquiripple());

        return newSettings;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.