本文整理了Java中com.jamonapi.Monitor.getStdDev()
方法的一些代码示例,展示了Monitor.getStdDev()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Monitor.getStdDev()
方法的具体详情如下:
包路径:com.jamonapi.Monitor
类名称:Monitor
方法名:getStdDev
暂无
代码示例来源:origin: org.patterntesting/patterntesting-rt
/**
* Gets the std dev.
*
* @return standard dev
*
* @see com.jamonapi.Monitor#getStdDev()
*/
public double getStdDev() {
return monitor.getStdDev();
}
代码示例来源:origin: net.sf.patterntesting/patterntesting-rt
/**
* Gets the std dev.
*
* @return standard dev
*
* @see com.jamonapi.Monitor#getStdDev()
*/
public double getStdDev() {
return monitor.getStdDev();
}
代码示例来源:origin: com.jamonapi/com.springsource.com.jamonapi
/** 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;
}
代码示例来源:origin: stevensouza/jamonapi
/** 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;
}
代码示例来源:origin: stevensouza/jamonapi
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());
代码示例来源:origin: SmartDataAnalytics/DL-Learner
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();
}
代码示例来源:origin: stevensouza/jamonapi
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();
}
内容来源于网络,如有侵权,请联系作者删除!