All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.finmath.singleswaprate.annuitymapping.ConstantNormalizer Maven / Gradle / Ivy

Go to download

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;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy