matlab.perftest.TimeExperiment.limitingSamplingError
R2026bClass: matlab.perftest.TimeExperiment
Namespace: matlab.perftest
Construct time experiment for specified margin of error and confidence level
Syntax
Description
experiment = matlab.perftest.TimeExperiment.limitingSamplingError constructs
a time experiment for each test suite element, with the specified
statistical objectives (such as margin of error and confidence level).
This method returns an instance of FrequentistTimeExperiment.
This syntax uses the following defaults to determine the number of
sample measurements.
Number of warm-up measurements: 5
Minimum number of samples: 4
Maximum number of samples collected in the event other statistical objectives are not met: 256
Objective relative margin of error for samples: 0.05 (5%)
Confidence level for samples to be within relative margin of error: 0.95 (95%)
experiment = matlab.perftest.TimeExperiment.limitingSamplingError(
specifies options using one or more name-value arguments. For example,
Name=Value)experiment =
matlab.perftest.TimeExperiment.limitingSamplingError(RelativeMarginOfError=0.12,MaxSamples=100)
creates a time experiment that collects sample measurements until samples have a
relative margin of error of 12%, or until it collects 100 measurements.