/*
* FunctionCore.java
*
* Created on September 4, 2002, 6:15 AM
*/
package hep.aida.ref.function;
import jas.hist.Handle;
import java.util.ArrayList;
/**
*
* @author serbo
*/
// Dimension, numberOfParameters are set at the constructor of a concrete class
public abstract class FunctionCore {
protected String title;
protected int dimension;
protected int numberOfParameters;
protected double[] p;
protected String[] parNames;
private ArrayList listeners = new ArrayList();
public FunctionCore(int dim, int nPar) {
init(dim, nPar);
}
public FunctionCore(int dim, int nPar, double[] parVal) {
if (parVal != null && nPar != parVal.length)
throw new IllegalArgumentException("Number of parameters ("+nPar+") is different from number of parameter values ("+parVal.length+")");
init(dim, nPar);
if (parVal != null) {
for (int i=0; i
Ads help maintain this website.