Search in sources :

Example 6 with TDoubleArrayList

use of gnu.trove.list.array.TDoubleArrayList in project GDSC-SMLM by aherbert.

the class OptimiserFunction method addData.

public void addData(float[] x, float[] y) {
    this.x = new TDoubleArrayList();
    this.y = new TDoubleArrayList();
    for (int i = 0; i < x.length; i++) {
        this.x.add((double) x[i]);
        this.y.add((double) y[i]);
    }
}
Also used : TDoubleArrayList(gnu.trove.list.array.TDoubleArrayList)

Aggregations

TDoubleArrayList (gnu.trove.list.array.TDoubleArrayList)6 MemoryPeakResults (gdsc.smlm.results.MemoryPeakResults)1 PeakResult (gdsc.smlm.results.PeakResult)1 Plot2 (ij.gui.Plot2)1 WeightedObservedPoint (org.apache.commons.math3.fitting.WeightedObservedPoint)1