updateFrequencies(elements) {
        if(elements.length == this.freqObject.length) {
            for(var i=0;i<this.freqObject.length;i++) {
                this._updateFreq(elements[i],i);
            }
        } else {
            console.error("FrequencyMetrics: checked object does not have the same length as initialized Metrics, ignoring");
        }
    }
/**
     * add new "record" or attribute set to check
     * @param elements array of data elements
     */
add new "record" or attribute set to check
@param elements array of data elements
add new " record " or attribute set to check @param elements array of data elements
updateFrequencies(elements) {
        if(elements.length == this.freqObject.length) {
            for(var i=0;i<this.freqObject.length;i++) {
                this._updateFreq(elements[i],i);
            }
        } else {
            console.error("FrequencyMetrics: checked object does not have the same length as initialized Metrics, ignoring");
        }
    }
updateFrequencies ( elements ) { if ( elements . length == this . freqObject . length ) { for ( var i = 0 ; i < this . freqObject . length ; i ++ ) { this . _updateFreq ( elements [ i ] , i ) ; } } else { console . error ( "FrequencyMetrics: checked object does not have the same length as initialized Metrics, ignoring" ) ; } }
add new "record" or attribute set to check
 @param elements array of data elements
add new " record " or attribute set to check @param elements array of data elements