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

com.actelion.research.calc.BoxCox Maven / Gradle / Ivy

There is a newer version: 2024.11.2
Show newest version
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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy