|
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.stat.mperiods.StatProbeMeasureMatrix
public class StatProbeMeasureMatrix
Matrix of measures whose value is obtained using a statistical probe. This
matrix only contains one measure and one period, and its value is obtained by
using StatProbe.sum()
. Since the sum can be considered as an integral,
the IntegralMeasureMatrix
class can be used to turn this
single-period matrix into a multiple-periods one.
Constructor Summary | |
---|---|
StatProbeMeasureMatrix(StatProbe probe)
Constructs a new matrix of measures using the statistical probe probe. |
Method Summary | |
---|---|
StatProbeMeasureMatrix |
clone()
Makes a copy of this matrix of measures. |
double |
getMeasure(int i,
int p)
Returns the measure corresponding to the index i and period p. |
int |
getNumMeasures()
Returns the number of measures calculated by the implementation of this interface. |
int |
getNumPeriods()
Returns the number of periods stored into this matrix of measures. |
StatProbe |
getStatProbe()
Returns the statistical probe associated with this matrix. |
void |
init()
Initializes this matrix of measures for a new simulation replication. |
void |
regroupPeriods(int x)
Throws an UnsupportedOperationException . |
void |
setNumMeasures(int nm)
Throws an UnsupportedOperationException . |
void |
setNumPeriods(int np)
Throws an UnsupportedOperationException . |
void |
setStatProbe(StatProbe probe)
Sets the associated statistical probe to probe. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public StatProbeMeasureMatrix(StatProbe probe)
probe
- the statistical probe being used.Method Detail |
---|
public StatProbe getStatProbe()
public void setStatProbe(StatProbe probe)
probe
- the new statistical probe.public void init()
MeasureMatrix
init
in interface MeasureMatrix
public int getNumMeasures()
MeasureMatrix
getNumMeasures
in interface MeasureMatrix
public int getNumPeriods()
MeasureMatrix
getNumPeriods
in interface MeasureMatrix
public void setNumMeasures(int nm)
UnsupportedOperationException
.
setNumMeasures
in interface MeasureMatrix
nm
- the new number of measures.
UnsupportedOperation
- if this method is called.public void setNumPeriods(int np)
UnsupportedOperationException
.
setNumPeriods
in interface MeasureMatrix
np
- the new number of periods.
UnsupportedOperation
- if this method is called.public void regroupPeriods(int x)
UnsupportedOperationException
.
regroupPeriods
in interface MeasureMatrix
x
- the number of periods per group.
UnsupportedOperation
- if this method is called.public double getMeasure(int i, int p)
MeasureMatrix
getMeasure
in interface MeasureMatrix
i
- the index of the measure.p
- the period of the measure.
public String toString()
toString
in class Object
public StatProbeMeasureMatrix clone()
clone
in class Object
|
ContactCenters V. 0.9.9. |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |