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

io.github.mianalysis.mia.process.math.Validator Maven / Gradle / Ivy

Go to download

ModularImageAnalysis (MIA) is an ImageJ plugin which provides a modular framework for assembling image and object analysis workflows. Detected objects can be transformed, filtered, measured and related. Analysis workflows are batch-enabled by default, allowing easy processing of high-content datasets.

There is a newer version: 1.6.12
Show newest version
package io.github.mianalysis.mia.process.math;

import org.apache.commons.math3.fitting.leastsquares.ParameterValidator;
import org.apache.commons.math3.linear.RealMatrix;
import org.apache.commons.math3.linear.RealVector;

/**
 * Created by sc13967 on 21/06/2017.
 */
public class Validator implements ParameterValidator {
    private RealMatrix limits;

    public Validator(RealMatrix limits) {
        this.limits = limits;

    }

    @Override
    public RealVector validate(RealVector realVector) {
        for (int i=0;i limits.getEntry(i,1)) {
                realVector.setEntry(i,limits.getEntry(i,1));
            }
        }

        return realVector;

    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy