Class PortfolioConstruction.Book
java.lang.Object
com.quantfinlib.alpha.PortfolioConstruction.Book
- Enclosing class:
PortfolioConstruction
A constructed book with what it actually achieved.
-
Constructor Summary
ConstructorsConstructorDescriptionBook(double[] weights, double gross, double net, boolean grossShortfall) Creates the value; array and collection arguments are copied. -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublegross()gross.booleangrossShortfall(true when gross fell below 90% of the target (too few names for the cap, or too few scored names)).inthashCode()doublenet()net.toString()doubleweights(int i) Elementiofweights.double[]A fresh copy ofweights.intLength ofweights.
-
Constructor Details
-
Book
public Book(double[] weights, double gross, double net, boolean grossShortfall) Creates the value; array and collection arguments are copied.- Parameters:
gross- achievedΣ|w|net- achievedΣwgrossShortfall- true when gross fell below 90% of the target (too few names for the cap, or too few scored names)
-
-
Method Details
-
weights
public double weights(int i) Elementiofweights. -
weightsLength
public int weightsLength()Length ofweights. -
weightsCopy
public double[] weightsCopy()A fresh copy ofweights. -
gross
public double gross()gross. -
net
public double net()net. -
grossShortfall
public boolean grossShortfall()grossShortfall(true when gross fell below 90% of the target (too few names for the cap, or too few scored names)). -
equals
-
hashCode
-
toString
-