public void updateRawRatioDataModelsWithPrimaryStandardValue(Double[] standardValuesMap) {
        // since ratios are sorted, we send in ordered array of corresponding standard values
        //TODO: make more robust
        SortedSet<DataModelInterface> ratiosSortedSet = getRatiosForFractionFitting();//getValidRawRatios();
        int count = 0;
        Iterator<DataModelInterface> ratiosSortedSetIterator = ratiosSortedSet.iterator();
        while (ratiosSortedSetIterator.hasNext()) {
            DataModelInterface ratio = ratiosSortedSetIterator.next();
            ((RawRatioDataModel) ratio).setStandardValue(standardValuesMap[count]);
            // oct 2012 check for zero or missing standard ratio and remove ratio from fractination consideration
            //if ( standardValuesMap[count] == 0.0 ) {
            ((RawRatioDataModel) ratio).setUsedForFractionationCorrections(standardValuesMap[count] != 0.0);
            //}
            count++;
        }
    }
public void updateRawRatioDataModelsWithPrimaryStandardValue(Double[] standardValuesMap) {
       
       
        SortedSet<DataModelInterface> ratiosSortedSet = getRatiosForFractionFitting()
        int count = 0;
        Iterator<DataModelInterface> ratiosSortedSetIterator = ratiosSortedSet.iterator();
        while (ratiosSortedSetIterator.hasNext()) {
            DataModelInterface ratio = ratiosSortedSetIterator.next();
            ((RawRatioDataModel) ratio).setStandardValue(standardValuesMap[count]);
           
           
            ((RawRatioDataModel) ratio).setUsedForFractionationCorrections(standardValuesMap[count] != 0.0);
           
            count++;
        }
    }
public void updaterawratiodatamodelswithprimarystandardvalue(double[] standardvaluesmap) { sortedset<datamodelinterface> ratiossortedset = getratiosforfractionfitting() int count = 0; iterator<datamodelinterface> ratiossortedsetiterator = ratiossortedset.iterator(); while (ratiossortedsetiterator.hasnext()) { datamodelinterface ratio = ratiossortedsetiterator.next(); ((rawratiodatamodel) ratio).setstandardvalue(standardvaluesmap[count]); ((rawratiodatamodel) ratio).setusedforfractionationcorrections(standardvaluesmap[count] != 0.0); count++; } }