
nl.tno.bim.nmd.scaling.NmdPowerScaler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bimnmdservice Show documentation
Show all versions of bimnmdservice Show documentation
provides a REST api for retrieving nmd data from various data sources
The newest version!
package nl.tno.bim.nmd.scaling;
public class NmdPowerScaler extends NmdBaseScaler implements NmdScaler {
public NmdPowerScaler(String scaleUnit, Double[] coefficients, Double[] bounds, Double[] currentValues) {
super(scaleUnit, coefficients, bounds, currentValues);
}
@Override
protected Double calculate(Double x) {
return coefficients[0] * Math.pow(x, coefficients[1]) + coefficients[2];
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy