Documentation of 'jhplot.FNon' Java class.

Class FNon

  • All Implemented Interfaces:
    IDevManagedObject, IFunction, IManagedObject, IModelFunction, Connectable, FunctionDispatcher,, java.lang.Cloneable

    public class FNon
    extends AbstractIFunction
    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
    • Constructor Detail

      • FNon

        public FNon(java.lang.String title,
                    int variable,
                    int parameters)
        title - Title
        variable - Nr of variables
        parameters - Nr of parameters.
      • FNon

        public FNon(java.lang.String[] variableNames,
                    java.lang.String[] parameterNames)
        Initialization where you can redefine the names of the parameters.
        variableNames - variable names
        parameterNames - parameter names.
    • Method Detail

      • value

        public double value(double[] v)
        Calculated value. You should overwrite this class.
        Specified by:
        value in interface IFunction
        Specified by:
        value in class AbstractIFunction
      • init

        public void init(java.lang.String title)
      • getF1D

        public F1D getF1D()
        If dimension is 1, you can return F1D for plotting.
        F1D function
      • getF2D

        public F2D getF2D()
        If dimension is 2, you can return F2D for plotting
        min - MinX min X value for plotting
        max - MaxX max X value for plotting
        min - MinY min Y value for plotting
        max - MaxY max Y value for plotting
        F2D function

DMelt 3.0 © DataMelt by jWork.ORG