TimeExperiment that collects variable
number of measurements
FrequentistTimeExperiment is an instance of
TimeExperiment class that collects a variable number
of measurements. The test framework collects a variable number of
measurements to reach a specified relative margin of error at a specified
To create a
matlab.perftest.TimeExperiment.limitingSamplingError static method.
NumWarmups— Number of warm-up measurements
Number of warm-up measurements, specified as a nonnegative integer.
NumWarmups defines the number of times that the
test framework runs the test code to warm it up.
MinSamples— Minimum number of samples
Minimum number of sample measurements, specified as an integer
greater than 1.
MinSamples defines the minimum
number of times that the test framework runs the test code after
The test framework exercises the test code at least
regardless of whether the experiment meets the statistical objectives.
MaxSamples— Maximum number of samples
Maximum number of sample measurements, specified as an integer greater than or equal to
the maximum number of times that the test framework runs the test code after
NumWarmups. The test framework will stop after it
MaxSamples samples, even if the experiment does
not meet the statistical objectives.
RelativeMarginOfError— Goal relative margin of error for samples
Goal relative margin of error for samples, specified as a positive number.
The framework calculates the Relative Margin of Error for a
X using the equation
the T-score from Student's T distribution using the specified
ConfidenceLevel— Confidence level for samples to be within relative margin of error
Confidence level for the samples to be within the relative margin of error, specified as a number between 0 and 1.
Handle. To learn how handle classes affect copy operations, see Copying Objects.