jhplot
Class FNon
- java.lang.Object
-
- All Implemented Interfaces:
- IDevManagedObject, IFunction, IManagedObject, IModelFunction, Connectable, FunctionDispatcher, java.io.Serializable, java.lang.Cloneable
public class FNon extends AbstractIFunction implements java.io.Serializable
Non-parametric function implementation. You can define any function programically by overwriting the method value(). By default, parameters are given by the public array p[], while variable names are give by array x[]. You can overwrite parameters and variables. The use it as input for F1D, F2D etc. for plotting.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class hep.aida.ref.function.AbstractIFunction
gradient, p
-
-
Constructor Summary
Constructors Constructor and Description FNon(java.lang.String[] variableNames, java.lang.String[] parameterNames)
Initialization where you can redefine the names of the parameters.FNon(java.lang.String title, int variable, int parameters)
Initialization.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description F1D
getF1D()
If dimension is 1, you can return F1D for plotting.F2D
getF2D()
If dimension is 2, you can return F2D for plottingvoid
init(java.lang.String title)
double
value(double[] v)
Calculated value.-
Methods inherited from class hep.aida.ref.function.AbstractIFunction
addFunctionListener, annotation, clone, codeletString, dimension, excludeNormalizationAll, gradient, includeNormalizationAll, indexOfParameter, isEqual, isNormalized, normalizationParameter, normalizationRange, normalize, numberOfParameters, parameter, parameterGradient, parameterNames, parameters, providesGradient, providesNormalization, providesParameterGradient, removeFunctionListener, setCodeletString, setParameter, setParameters, setTitle, title, variableName, variableNames
-
Methods inherited from class hep.aida.ref.ManagedObject
isFillable, name, setFillable, setName, type, typeForClass
-
Methods inherited from class hep.aida.ref.event.AIDAObservable
addListener, isConnected, removeAllListeners, removeListener, setConnected, setValid, setValidForAll
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface hep.aida.ref.event.Connectable
isConnected, setConnected
-
-
-
-
Constructor Detail
-
FNon
public FNon(java.lang.String title, int variable, int parameters)
Initialization.- Parameters:
title
- Titlevariable
- Nr of variablesparameters
- Nr of parameters.
-
FNon
public FNon(java.lang.String[] variableNames, java.lang.String[] parameterNames)
Initialization where you can redefine the names of the parameters.- Parameters:
variableNames
- variable namesparameterNames
- parameter names.
-
-
Method Detail
-
value
public double value(double[] v)
Calculated value. You should overwrite this class.- Specified by:
value
in interfaceIFunction
- Specified by:
value
in classAbstractIFunction
-
init
public void init(java.lang.String title)
-
getF1D
public F1D getF1D()
If dimension is 1, you can return F1D for plotting.- Returns:
- F1D function
-
getF2D
public F2D getF2D()
If dimension is 2, you can return F2D for plotting- Parameters:
min
- MinX min X value for plottingmax
- MaxX max X value for plottingmin
- MinY min Y value for plottingmax
- MaxY max Y value for plotting- Returns:
- F2D function
-
-
DMelt 3.0 © DataMelt by jWork.ORG