/** * Removes from the receiver all elements that are contained in the specified list. * * @param list the elements to be removed. * @return <code>true</code> if the receiver changed as a result of the call. */ public synchronized boolean removeAllOf(DoubleArrayList list) { boolean changed = this.elements.removeAll(list); if (changed) { clearAllMeasures(); invalidateAll(); this.size = 0; if (fixedOrder) { this.sortedElements.removeAll(list); this.isSorted = true; } } return changed; }
/** * Modifies the receiver to be standardized. Changes each element <tt>x[i]</tt> as follows: * <tt>x[i] = (x[i]-mean)/standardDeviation</tt>. */ public synchronized void standardize(double mean, double standardDeviation) { Descriptive.standardize(this.elements, mean, standardDeviation); clearAllMeasures(); invalidateAll(); this.size = 0; }