Package samer.functions
Class Add
- java.lang.Object
-
- samer.maths.Function
-
- samer.functions.Add
-
public class Add extends Function
-
-
Constructor Summary
Constructors Constructor and Description Add(double k)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubleapply(double t)voidapply(double[] x)apply function in place, to each element of inoutvoidapply(double[] x, double[] y)apply function to each element of in, placing result in outFunctionderivative()java.lang.Stringformat(java.lang.String arg)doubleget()Functioninverse()voidset(double k)
-
-
-
Method Detail
-
set
public void set(double k)
-
get
public double get()
-
apply
public void apply(double[] x)
Description copied from class:Functionapply function in place, to each element of inout
-
apply
public void apply(double[] x, double[] y)Description copied from class:Functionapply function to each element of in, placing result in out
-
derivative
public Function derivative()
- Overrides:
derivativein classFunction
-
-