|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectumontreal.iro.lecuyer.simexp.SimExp
umontreal.iro.lecuyer.simexp.BatchMeansSim
umontreal.iro.lecuyer.contactcenters.BatchMeansSimCC
public abstract class BatchMeansSimCC
Extends BatchMeansSim
to use matrices of measures for storing the
intermediate values 's of real batches. This class defines a list
of measure matrices which is automatically initialized after the warmup
period. When batch aggregation is turned OFF, these matrices contain a single
period and are reinitialized at the beginning of each batch. If batch
aggregation is turned ON, each period in measure matrices correspond to a
real batch.
Field Summary |
---|
Fields inherited from class umontreal.iro.lecuyer.simexp.SimExp |
---|
sim, simulating |
Constructor Summary | |
---|---|
BatchMeansSimCC(int minBatches,
double batchSize,
double warmupTime)
Calls super
(minBatches, batchSize, warmupTime). |
|
BatchMeansSimCC(int minBatches,
int maxBatches,
double batchSize,
double warmupTime)
Calls super
(minBatches, maxBatches, batchSize, warmupTime). |
|
BatchMeansSimCC(Simulator sim,
int minBatches,
double batchSize,
double warmupTime)
Calls BatchMeansSim.BatchMeansSim(Simulator,int,double,double) . |
|
BatchMeansSimCC(Simulator sim,
int minBatches,
int maxBatches,
double batchSize,
double warmupTime)
Calls BatchMeansSim.BatchMeansSim(Simulator,int,int,double,double) . |
Method Summary | |
---|---|
void |
addRealBatchObs()
For each IntegralMeasureMatrix instance in the list returned by
getMeasureMatrices() , calls
IntegralMeasureMatrix.newRecord() . |
void |
allocateCapacity(int newCapacity)
|
static double[] |
getBatchValues(MeasureMatrix mat,
double[] m,
int s,
int h)
Equivalent to getBatchValues(MeasureMatrix,DoubleMatrix2D,int,int) for an
array. |
static DoubleMatrix1D |
getBatchValues(MeasureMatrix mat,
DoubleMatrix1D m,
int s,
int h)
Equivalent to getBatchValues(MeasureMatrix,DoubleMatrix2D,int,int) for a
DoubleMatrix1D instance. |
static DoubleMatrix2D |
getBatchValues(MeasureMatrix mat,
DoubleMatrix2D m,
int s,
int h)
Copies the values corresponding to the current effective batch for the measure matrix mat into the matrix m. |
static double[] |
getBatchValues(MeasureMatrix mat,
int s,
int h)
Constructs an array with one element for each measure in mat, and calls getBatchValues(MeasureMatrix,double[],int,int) . |
static DoubleMatrix1D |
getBatchValues1D(MeasureMatrix mat,
int s,
int h)
Constructs a matrix with one row for each measure in mat, and calls getBatchValues(MeasureMatrix,DoubleMatrix1D,int,int) . |
static DoubleMatrix2D |
getBatchValues2D(MeasureMatrix mat,
int s,
int h)
Constructs a matrix with one row for each measure in mat and a single column, then calls getBatchValues(MeasureMatrix,DoubleMatrix2D,int,int) . |
List<MeasureMatrix> |
getMeasureMatrices()
Returns the matrices of measures registered to this object. |
void |
initBatchStat()
Initializes registered matrices of measures if batch aggregation is turned OFF. |
void |
initRealBatchProbes()
Initializes the matrices of measures. |
void |
regroupRealBatches(int x)
|
static double[] |
timeNormalize(double[] m,
double l)
Equivalent to timeNormalize(DoubleMatrix2D,double) for an array. |
static DoubleMatrix1D |
timeNormalize(DoubleMatrix1D m,
double l)
Equivalent to timeNormalize(DoubleMatrix2D,double) with an
instance of DoubleMatrix1D . |
static DoubleMatrix2D |
timeNormalize(DoubleMatrix2D m,
double l)
Normalizes the rows of the one-column matrix m using the batch length l. |
Methods inherited from class umontreal.iro.lecuyer.simexp.SimExp |
---|
getRequiredNewObservations, getRequiredNewObservations, getRequiredNewObservations, getRequiredNewObservations, getRequiredNewObservationsTally, getRequiredNewObservationsTally, isSimulating, setSimulator, simulator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BatchMeansSimCC(int minBatches, double batchSize, double warmupTime)
super
(minBatches, batchSize, warmupTime).
public BatchMeansSimCC(Simulator sim, int minBatches, double batchSize, double warmupTime)
BatchMeansSim.BatchMeansSim(Simulator,int,double,double)
.
public BatchMeansSimCC(int minBatches, int maxBatches, double batchSize, double warmupTime)
super
(minBatches, maxBatches, batchSize, warmupTime).
public BatchMeansSimCC(Simulator sim, int minBatches, int maxBatches, double batchSize, double warmupTime)
BatchMeansSim.BatchMeansSim(Simulator,int,int,double,double)
.
Method Detail |
---|
public List<MeasureMatrix> getMeasureMatrices()
MeasureMatrix
only.
public void initBatchStat()
initBatchStat
in class BatchMeansSim
public void allocateCapacity(int newCapacity)
allocateCapacity
in class BatchMeansSim
public void regroupRealBatches(int x)
regroupRealBatches
in class BatchMeansSim
public void initRealBatchProbes()
initRealBatchProbes
in class BatchMeansSim
public void addRealBatchObs()
IntegralMeasureMatrix
instance in the list returned by
getMeasureMatrices()
, calls
IntegralMeasureMatrix.newRecord()
.
addRealBatchObs
in class BatchMeansSim
public static DoubleMatrix2D getBatchValues(MeasureMatrix mat, DoubleMatrix2D m, int s, int h)
mat
- the measure matrix for which the Colt matrix is required.m
- the matrix receiving the results.s
- the starting real batch.h
- the number of real batches per effective batch.
IllegalArgumentException
- if the dimensions of the matrix m are incompatible.public static DoubleMatrix2D getBatchValues2D(MeasureMatrix mat, int s, int h)
getBatchValues(MeasureMatrix,DoubleMatrix2D,int,int)
.
public static DoubleMatrix1D getBatchValues(MeasureMatrix mat, DoubleMatrix1D m, int s, int h)
getBatchValues(MeasureMatrix,DoubleMatrix2D,int,int)
for a
DoubleMatrix1D
instance.
public static DoubleMatrix1D getBatchValues1D(MeasureMatrix mat, int s, int h)
getBatchValues(MeasureMatrix,DoubleMatrix1D,int,int)
.
public static double[] getBatchValues(MeasureMatrix mat, double[] m, int s, int h)
getBatchValues(MeasureMatrix,DoubleMatrix2D,int,int)
for an
array.
public static double[] getBatchValues(MeasureMatrix mat, int s, int h)
getBatchValues(MeasureMatrix,double[],int,int)
.
public static DoubleMatrix2D timeNormalize(DoubleMatrix2D m, double l)
m
- the matrix being normalized.l
- the batch length.
public static DoubleMatrix1D timeNormalize(DoubleMatrix1D m, double l)
timeNormalize(DoubleMatrix2D,double)
with an
instance of DoubleMatrix1D
.
public static double[] timeNormalize(double[] m, double l)
timeNormalize(DoubleMatrix2D,double)
for an array.
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |