metreex-analysis.js
/**
 * Driver function for principal component analysis
 * @param {Array} metricValues Full 2-dimensional array of metric values from applying metrics to loaded treebanks
 * @returns {Array} Data generated by PCA, to be plotted.
 */
Driver function for principal component analysis
@param {Array} metricValues Full 2-dimensional array of metric values from applying metrics to loaded treebanks
@returns {Array} Data generated by PCA, to be plotted.
Driver function for principal component analysis @param { Array } metricValues Full 2 - dimensional array of metric values from applying metrics to loaded treebanks @returns { Array } Data generated by PCA to be plotted .
function principalComponentAnalysis(metricValues){
    var covMatrix = computeCovariance(metricValues),
        eigenPairs = computeEigendecomposition(covMatrix),
        eigenIndexInfo = sortEigenvals(eigenPairs.eigVals),
        projectionMatrix = computeEigenProjection(eigenIndexInfo, eigenPairs.eigVecs, metricValues);
    return projectionMatrix._data;
}
function principalComponentAnalysis ( metricValues ) { var covMatrix = computeCovariance ( metricValues ) , eigenPairs = computeEigendecomposition ( covMatrix ) , eigenIndexInfo = sortEigenvals ( eigenPairs . eigVals ) , projectionMatrix = computeEigenProjection ( eigenIndexInfo , eigenPairs . eigVecs , metricValues ) ; return projectionMatrix . _data ; }
Driver function for principal component analysis
 @param {Array} metricValues Full 2-dimensional array of metric values from applying metrics to loaded treebanks
 @returns {Array} Data generated by PCA, to be plotted.
Driver function for principal component analysis @param { Array } metricValues Full 2 - dimensional array of metric values from applying metrics to loaded treebanks @returns { Array } Data generated by PCA to be plotted .