TurfPortfolio
A TURF portfolio which is returned as a result of a TURF analysis. See
QScript Turf for more information.
alternativeLabels
Returns an array of labels of the alternatives in the portfolio.
Example: | var portfolios = turf.optimalPortfolios(5);
log('The labels of the alternatives in the most optimal portfolio of size 5 are: ' + portfolios[0].alternativeLabels);
|
equals(obj)
Whether two objects are the same.
obj | The object to compare against. |
Returns: | true or false |
Example: | data_file.getQuestionByName('Q2').equals(data_file.questions()[0])
|
frequency
Returns the frequency of the alternatives in the portfolio.
Example: | var portfolios = turf.optimalPortfolios(5);
log('The frequency of the most optimal portfolio of size 5 is: ' + portfolios[0].frequency);
|
reach
Returns the reach of the alternatives in the portfolio.
Example: | var portfolios = turf.optimalPortfolios(5);
log('The reach of the most optimal portfolio of size 5 is: ' + portfolios[0].reach);
|
type
Returns 'TurfPortfolio'.
See also