Package com.powsybl.loadflow.validation
Class KComputation
- java.lang.Object
-
- com.powsybl.loadflow.validation.KComputation
-
public class KComputation extends Object
Based on a list of (value, target, coeff), computes the balancing ratio k such thatsum(values) - sum(target) = k * sum(coeff)
and compute the variance of values around the theoretical value target + k*coeff.- Author:
- Massimo Ferraro
-
-
Constructor Summary
Constructors Constructor Description KComputation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addGeneratorValues(double p, double targetP, double value)
Register values for a generator:double
getK()
Estimated value of coefficient, based on registered values.double
getVarK()
Compute variance of distribution around the theoretical values.
-
-
-
Method Detail
-
addGeneratorValues
public void addGeneratorValues(double p, double targetP, double value)
Register values for a generator:- Parameters:
p
- Computed power generationtargetP
- Target power generationvalue
- Assumed coefficient for that generator (for example Pmax, targetP, ...)
-
getK
public double getK()
Estimated value of coefficient, based on registered values.
-
getVarK
public double getVarK()
Compute variance of distribution around the theoretical values.
-
-