Package com.powsybl.loadflow.validation
Class KComputation
java.lang.Object
com.powsybl.loadflow.validation.KComputation
Based on a list of (value, target, coeff), computes the balancing ratio k such that
sum(values) - sum(target) = k * sum(coeff)and compute the variance of values around the theoretical value target + k*coeff.
- Author:
- Massimo Ferraro <[email protected]>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
Constructor Details
-
KComputation
public KComputation()
-
-
Method Details
-
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.
-