com.actelion.research.calc.BoxCox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of openchemlib Show documentation
Show all versions of openchemlib Show documentation
Open Source Chemistry Library
package com.actelion.research.calc;
import com.actelion.research.util.ArrayUtils;
import java.text.DecimalFormat;
/**
*
* BoxCox
* @author Modest von Korff
* 2005 MvK Start implementation
* http://www.itl.nist.gov/div898/handbook/eda/section3/boxcox.htm
* https://en.wikipedia.org/wiki/Power_transform
*/
public class BoxCox {
private static final double TINY = 0.0000001;
private double lambda;
private boolean zero;
public BoxCox(double lambda){
setLambda(lambda);
}
public void setLambda(double lambda) {
this.lambda = lambda;
if(lambda