/// <summary> /// /// </summary> /// <returns></returns> public string Dump() { return("== DATASOURCE ==\n" + "DS:" + dsName.Get() + ":" + dsType.Get() + ":" + heartbeat.Get() + ":" + minValue.Get() + ":" + maxValue.Get() + "\nlastValue:" + lastValue.Get() + " nanSeconds:" + nanSeconds.Get() + " accumValue:" + accumValue.Get() + "\n"); }
private void FinalizeStep(ArcState state, Robin robin) { // should store long arcSteps = steps.Get(); double arcXff = xff.Get(); long nanSteps = state.NanSteps; //double nanPct = (double) nanSteps / (double) arcSteps; double accumValue = state.AccumValue; if (nanSteps <= arcXff * arcSteps && !Double.IsNaN(accumValue)) { if (consolFun.Get().Equals("AVERAGE")) { accumValue /= (arcSteps - nanSteps); } robin.Store(accumValue); } else { robin.Store(Double.NaN); } state.AccumValue = Double.NaN; state.NanSteps = 0; }
/// <summary> /// /// </summary> /// <returns></returns> public string Dump() { return("accumValue:" + accumValue.Get() + " nanSteps:" + nanSteps.Get() + "\n"); }