Documentation of 'joptima.functions.Arctangent' Java class
Arctangent
joptima.functions

Class Arctangent

  • All Implemented Interfaces:
    Function


    public class Arctangent
    extends ConstrainableFunction
    Function atan((x - offset) / amplitude) / (2 * pi * frequency). A concrete implementation of joptima.Function that calculates an arctangent.
    • Field Detail

      • m_amplitude

        public double m_amplitude
      • m_frequency

        public double m_frequency
      • m_xoffset

        public double m_xoffset
    • Constructor Detail

      • Arctangent

        public Arctangent()
        Default constructor: amplitude = 1, frequency = 1, xoffset = 0.
      • Arctangent

        public Arctangent(double amplitude,
                          double frequency,
                          double xoffset)
        Constructor.
    • Method Detail

      • getParameters

        public Parameter[] getParameters()
        Description copied from interface: Function
        Lists all the mutable parameters to this function.
        Returns:
        a Parameter[] of delegates that access the proper member variables.
      • constrain

        public void constrain(java.lang.String parametername)
        Description copied from class: ConstrainableFunction
        Removes the given parameter from the parameter list. This constraint is mandatory to implement.
        Specified by:
        constrain in class ConstrainableFunction
      • getName

        public java.lang.String getName()
        Description copied from interface: Function
        Gets the (user-settable) name of this function.
        Returns:
        the name of the function
      • setName

        public void setName(java.lang.String newname)
        Description copied from interface: Function
        Overrides the default function name.
        Parameters:
        newname - the new name for the function
      • calculate

        public double calculate(double x)
        Description copied from interface: Function
        Calculates the value of the function at the given point using the preset parameters.
        Parameters:
        x - the x coordinate to calculate the function at
        Returns:
        the value of the function at the given coordinate
      • setAngularFrequency

        public void setAngularFrequency(double omega)
      • getAngularFrequency

        public double getAngularFrequency()
      • getAmplitude

        public double getAmplitude()
      • setAmplitude

        public void setAmplitude(double amplitude)
      • getFrequency

        public double getFrequency()
      • setFrequency

        public void setFrequency(double frequency)
      • getXoffset

        public double getXoffset()
      • setXoffset

        public void setXoffset(double xoffset)

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.