pub fn imbalance(i: &[FPDecimal], p: &[FPDecimal], w: &[FPDecimal]) -> FPDecimalExpand description
§Description
Calculates the cluster imbalance.
§Params
-
i is a reference to an array containing objects of type
FPDecimalwhich
is the asset inventory. -
p is a reference to an array containing objects of type
FPDecimalwhich
are the prices of the assets. -
w is a reference to an array containing objects of type
FPDecimalwhich are the target weights of the assets.