mikera.vectorz.ops.NormalRBF Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of vectorz Show documentation
Show all versions of vectorz Show documentation
Fast double-precision vector and matrix maths library for Java, supporting N-dimensional numeric arrays.
package mikera.vectorz.ops;
public class NormalRBF extends ABoundedOp {
public static final NormalRBF INSTANCE=new NormalRBF();
@Override
public double apply(double x) {
return Math.exp(-(x*x));
}
@Override
public boolean hasDerivative() {
return true;
}
@Override
public boolean hasDerivativeForOutput() {
return false;
}
@Override
public double derivative(double x) {
return -2*x*Math.exp(-(x*x));
}
@Override
public double averageValue() {
return 0.5;
}
@Override
public double minValue() {
return 0.0;
}
@Override
public boolean hasInverse() {
return false;
}
@Override
public double maxValue() {
return 1.0;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy