Метод |
Описание |
|
__construct ( Subject $subject, ParameterSet $parameterSet, $revolutions, $warmup, array $computedStats = [] ) |
|
|
addIteration ( Iteration $iteration ) |
Add an iteration. |
|
computeStats ( ) |
Calculate and set the deviation from the mean time for each iteration. If
the deviation is greater than the rejection threshold, then mark the iteration as
rejected. |
|
count ( ) |
Return number of iterations. |
|
createErrorStack ( array $errors ) |
Create and set the error stack from a list of Error instances. |
|
createIteration ( array $results = [] ) : Iteration |
Create and add a new iteration. |
|
getErrorStack ( ) : ErrorStack |
Should be called when rebuiling the object graph. |
|
getIteration ( $index ) : Iteration |
Return the iteration at the given index. |
|
getIterations ( ) : Iteration[] |
Return all the iterations. |
|
getIterator ( ) |
|
|
getMetricValues ( $resultClass, $metricName ) : mixed[] |
Return result values by class and metric name. |
|
getMetricValuesByRev ( $resultClass, $metric ) : mixed[] |
Return the average metric values by revolution. |
|
getParameterSet ( ) : ParameterSet |
Return the parameter set. |
|
getRejectCount ( ) : integer |
Return the number of rejected iterations. |
|
getRejects ( ) : Iteration[] |
Return all rejected iterations. |
|
getRevolutions ( ) : integer |
Return the number of revolutions for this variant. |
|
getStats ( ) : Distribution |
Return statistics about this iteration collection. |
|
getSubject ( ) : Subject |
Return the subject metadata. |
|
getWarmup ( ) : integer |
Return the number of warmup revolutions. |
|
hasErrorStack ( ) : boolean |
Return true if any of the iterations in this set encountered
an error. |
|
isComputed ( ) : boolean |
Return true if the collection has been computed (i.e. stats have been s
set and rejects identified). |
|
offsetExists ( $offset ) |
|
|
offsetGet ( $offset ) |
|
|
offsetSet ( $offset, $value ) |
|
|
offsetUnset ( $offset ) |
|
|
setException ( Exception $exception ) |
Create an error stack from an Exception. |
|
spawnIterations ( integer $nbIterations ) |
Generate $nbIterations and add them to the variant. |
|