FreeHEP API
Version current

hep.aida.ref.function
Class NonParametricFunction

java.lang.Object
  extended byhep.aida.ref.function.AbstractIFunction
      extended byhep.aida.ref.function.NonParametricFunction
All Implemented Interfaces:
FunctionDispatcher, hep.aida.IFunction, hep.aida.IModelFunction

public class NonParametricFunction
extends AbstractIFunction

Author:
The FreeHEP team @ SLAC
Source Code:
NonParametricFunction.java

Field Summary
 
Fields inherited from class hep.aida.ref.function.AbstractIFunction
codeletString, gradient, p, parameterNames, variableNames
 
Constructor Summary
NonParametricFunction(String title, hep.aida.IFitData data)
           
 
Method Summary
 String normalizationParameter()
           
 double value(double[] v)
          Provide value for your function here.
 
Methods inherited from class hep.aida.ref.function.AbstractIFunction
addFunctionListener, annotation, codeletString, dimension, excludeNormalizationAll, gradient, includeNormalizationAll, indexOfParameter, init, isEqual, isNormalized, main, normalizationRange, normalize, numberOfParameters, parameter, parameterGradient, parameterNames, parameters, providesGradient, providesNormalization, providesParameterGradient, removeFunctionListener, setCodeletString, setParameter, setParameters, setTitle, title, variableName, variableNames
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonParametricFunction

public NonParametricFunction(String title,
                             hep.aida.IFitData data)
Method Detail

normalizationParameter

public String normalizationParameter()
Specified by:
normalizationParameter in interface hep.aida.IFunction
Overrides:
normalizationParameter in class AbstractIFunction

value

public double value(double[] v)
Description copied from class: AbstractIFunction
Provide value for your function here. Something like: return p[0]*v[0]*v[0]+p[1]*v[0]+p[3];

Specified by:
value in interface hep.aida.IFunction
Specified by:
value in class AbstractIFunction

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.