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

com.actelion.research.util.FittingFunction Maven / Gradle / Ivy

There is a newer version: 2024.12.1
Show newest version
/*
 * @(#)FittingFunction.java
 *
 * contains the fitting function 'funcs' passed to NumericalRecipes.mrqmin()
 *
 * Copyright 2003 Actelion Ltd., Inc. All Rights Reserved.
 *
 * This software is the proprietary information of Actelion Pharmaceuticals, Ltd.
 * Use is subject to license terms.
 *
 */

package com.actelion.research.util;

public class FittingFunction {
	public double chisq;
	public double alamda;
	public double fittingFunction(double x, double[] a, double[] dyda, int ma) {
		// handles fitting of a straight line
		// for a more useful equation overwrite this function
		dyda[0] = x;
		dyda[1] = 1;
		return a[0]*x+a[1];
		}
	}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy