public double ProgressUpdate() { double res = dMeasure.ProgressUpdate(); if (!hierarchical) { return(res * 0.5 + 0.5 * (double)currentV / maxV); } return(res * 0.5 + 0.5 * (double)hcurrentV / hmaxV); }
public double ProgressUpdate() { double sumProgress = 0; double progress = dMeasure.ProgressUpdate(); if (progressRead == 1) { sumProgress = 0.05 + progress * 0.7; } else { sumProgress = 0.05 * progress; } return(sumProgress + 0.25 * ((double)currentV / maxV)); }