public final class FastGaussian extends Object implements ParametrizedFunction, Serializable
1.0
.
exp(x)
function.
For more information, see
this paper.Modifier and Type | Field and Description |
---|---|
static double |
DEFAULT_PARAM |
Constructor and Description |
---|
FastGaussian() |
FastGaussian(double param) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Two functions are equal if they return the same values for all possible
arguments.
|
double |
getDeriv(double arg)
Returns a value of the first derivative of the function for the given
argument.
|
double |
getParam()
Returns the sigma parameter.
|
double |
getValue(double arg)
Returns a value of the function for the given argument.
|
boolean |
hasDeriv()
Returns
true if the function is differentiable. |
int |
hashCode() |
void |
setParam(double param)
Sets the sigma parameter.
|
String |
toString() |
public static final double DEFAULT_PARAM
public FastGaussian()
public FastGaussian(double param)
public double getParam()
getParam
in interface ParametrizedFunction
public void setParam(double param)
setParam
in interface ParametrizedFunction
param
- sigmapublic double getValue(double arg)
Function
public double getDeriv(double arg)
Function
public boolean hasDeriv()
Function
true
if the function is differentiable.public boolean equals(Object obj)
Copyright © 2012. All Rights Reserved.