public class PowerFunction2D extends java.lang.Object implements Function2D, java.io.Serializable
| Constructor and Description |
|---|
PowerFunction2D(double a,
double b)
Creates a new power function.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this function for equality with an arbitrary object.
|
double |
getA()
Returns the 'a' coefficient that was specified in the constructor.
|
double |
getB()
Returns the 'b' coefficient that was specified in the constructor.
|
double |
getValue(double x)
Returns the value of the function for a given input ('x').
|
int |
hashCode()
Returns a hash code for this instance.
|
public PowerFunction2D(double a, double b)
a - the 'a' coefficient.b - the 'b' coefficient.public double getA()
public double getB()
public double getValue(double x)
getValue in interface Function2Dx - the x-value.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public int hashCode()
hashCode in class java.lang.Object