Package org.drip.regression.core
Class UnitRegressionStat
java.lang.Object
org.drip.regression.core.UnitRegressionStat
public class UnitRegressionStat
extends java.lang.Object
UnitRegressionStat creates the statistical details for the Unit Regressor. It holds the following:
- Execution Initialization Delay
- Execution time mean, variance, maximum, and minimum
- The full list of individual execution times
- Module = Computational Core Module
- Library = Computation Support
- Project = Regression Engine Core and the Unit Regressors
- Package = Regression Engine Core - Unit Regressors
- Author:
- Lakshmi Krishnamurthy
-
Constructor Summary
Constructors Constructor Description UnitRegressionStat()
Empty Constructor -
Method Summary
Modifier and Type Method Description boolean
addExecTime(long lExecTime)
Add another run execution timejava.lang.String
displayString(java.lang.String strRegressionUnit)
Return the string version of the statisticsboolean
generateStat()
Generate the statistics across all the execution times generatedlong
getInitializationDelay()
Get the delay when the regressor is invoked for the first timelong
getMax()
Get the Maximum in the execution timelong
getMean()
Get the Mean in the execution timelong
getMin()
Get the Minimum in the execution timeint
getRuns()
Get the number of runs for the statisticslong
getVariance()
Get the variance in the execution timeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
UnitRegressionStat
public UnitRegressionStat()Empty Constructor
-
-
Method Details
-
addExecTime
public boolean addExecTime(long lExecTime)Add another run execution time- Parameters:
lExecTime
- Execution Time- Returns:
- TRUE - Executed time run successfully added
-
generateStat
public boolean generateStat()Generate the statistics across all the execution times generated- Returns:
- TRUE - Statistics successfully generated
-
getRuns
public int getRuns()Get the number of runs for the statistics- Returns:
- Number of runs
-
getMean
public long getMean()Get the Mean in the execution time- Returns:
- Execution Time Mean
-
getMin
public long getMin()Get the Minimum in the execution time- Returns:
- Execution Time Minimum
-
getMax
public long getMax()Get the Maximum in the execution time- Returns:
- Execution Time Maximum
-
getVariance
public long getVariance()Get the variance in the execution time- Returns:
- Execution Time Variance
-
getInitializationDelay
public long getInitializationDelay()Get the delay when the regressor is invoked for the first time- Returns:
- Initialization Delay
-
displayString
public java.lang.String displayString(java.lang.String strRegressionUnit)Return the string version of the statistics- Parameters:
strRegressionUnit
- Name the unit for which the regression run was done- Returns:
- String holding the content of the unit regression statistics
-