net.finmath.singleswaprate.annuitymapping.ConstantNormalizer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finmath-lib Show documentation
Show all versions of finmath-lib Show documentation
finmath lib is a Mathematical Finance Library in Java.
It provides algorithms and methodologies related to mathematical finance.
The newest version!
package net.finmath.singleswaprate.annuitymapping;
/**
* Constant normalizer returning the value one.
*
* @author Christian Fries
* @author Roland Bachl
*
*/
public class ConstantNormalizer implements NormalizingFunction {
@Override
public double getValue(final double swapRate) {
return 1;
}
@Override
public double getFirstDerivative(final double swapRate) {
return 0;
}
@Override
public double getSecondDerivative(final double swapRate) {
return 0;
}
}