All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.mianalysis.mia.process.analysis.CumulativePathLengthCalculator Maven / Gradle / Ivy

package io.github.mianalysis.mia.process.analysis;

import java.util.TreeMap;

/**
 * Created by Stephen on 15/04/2017.
 */
public class CumulativePathLengthCalculator implements SpatialCalculator {
    public TreeMap calculate(double[] x, double[] y, double[] z, int[] f) {
        TreeMap steps = new InstantaneousStepSizeCalculator().calculate(x,y,z,f);
        TreeMap dist = new TreeMap<>();

        dist.put(f[0],0d);
        for (int i=1;i




© 2015 - 2024 Weber Informatics LLC | Privacy Policy