/** * Gets the std dev. * * @return standard dev * * @see com.jamonapi.Monitor#getStdDev() */ public double getStdDev() { return monitor.getStdDev(); }
/** * Gets the std dev. * * @return standard dev * * @see com.jamonapi.Monitor#getStdDev() */ public double getStdDev() { return monitor.getStdDev(); }
/** This is not a true standard deviation but a average weighted std deviation. However * individual monitors do have a true standard deviation */ public double getStdDev() { double weightedStdDev=0; double totalHits=0; for (int i=0;i<numRows;i++) { double hits=monitors[i].getHits(); weightedStdDev=hits*monitors[i].getStdDev(); totalHits+=hits; } if (totalHits==0) return 0; else return weightedStdDev/totalHits; }
/** This is not a true standard deviation but a average weighted std deviation. However * individual monitors do have a true standard deviation */ @Override public double getStdDev() { double weightedStdDev=0; double totalHits=0; for (int i=0;i<numRows;i++) { double hits=monitors[i].getHits(); weightedStdDev=hits*monitors[i].getStdDev(); totalHits+=hits; } if (totalHits==0) return 0; else return weightedStdDev/totalHits; }
return new Double(getActive()); else if (STDDEV.equalsIgnoreCase(key)) return new Double(getStdDev()); else if (VALUE.equalsIgnoreCase(key) || LASTVALUE.equalsIgnoreCase(key)) return new Double(getLastValue());
public FinalizedMonitor(Monitor m){ header = (String)m.getMonKey().getValue(MonKey.LABEL_HEADER); units = (String)m.getMonKey().getValue(MonKey.UNITS_HEADER); avg = m.getAvg(); hits = m.getHits(); stdDev = m.getStdDev(); lastValue = m.getLastValue(); max = m.getMax(); min = m.getMin(); total = m.getTotal(); }
public MonitorDelta(Monitor mon) { label = mon.getLabel(); units = mon.getUnits(); hits = mon.getHits(); total = mon.getTotal(); avg = mon.getAvg(); min = mon.getMin(); max = mon.getMax(); stdDev = mon.getStdDev(); firstAccess = mon.getFirstAccess(); lastAccess = mon.getLastAccess(); lastValue = mon.getLastValue(); active = mon.getActive(); maxActive = mon.getMaxActive(); avgActive = mon.getAvgActive(); }