updateDetector
Update settings of a trained statistical process control anomaly detector
Since R2026a
Description
Add-On Required: This feature requires the Time Series Anomaly Detection for MATLAB add-on.
updates the properties in the detector = updateDetector(detector,data,Name=Value)TimeSeriesSPCDetector
detector using the name-value arguments that you specify. These
arguments represent derived values that you can modify to tune the detector.
Input Arguments
Anomaly detector model, specified as a TimeSeriesSPCDetector object.
Time series data to be used for updating the threshold, specified as a matrix, a
cell array, or a timetable. data must consist of only normal data,
with no known anomalies or anomalous data.
When data contains m sets of signals, each
of which contain n = detector.NumChannels
channels, the possible formats are these:
n-column matrix that consists of a single multichannel signal (m=1).
Cell array with m cells that each contain a matrix that has
NumChannelscolumns.Timetable that contains a single multichannel signal , arranged in one of two possible ways.
The n channels are distributed in the columns of a matrix that the timetable contains in a single variable
The n channels are represented by n timetable variables that each contain a vector.
In either case, the timetable must contain finite, increasing, and uniformly sampled time values.
Name-Value Arguments
Specify optional pairs of arguments as
Name1=Value1,...,NameN=ValueN, where Name is
the argument name and Value is the corresponding value.
Name-value arguments must appear after other arguments, but the order of the
pairs does not matter.
Example: detector = updateDetector(detector,dataDectionRules="we1")
changes the rule for detection anomalies to the Western Electric rule
"we1".
Training-Derived Values
Vector of estimated sample means of the window (batch) means, represented after
training as a numeric vector with one value for each channel.
CenterLine provides the basis from which time series deviations
are measured during detection.
Estimated sample standard error of the window (batch) means, represented after training as a numeric vector with one value for each channel.
Estimated sample mean of the window (batch) means, represented after training as a
numeric vector with one value for each channel. Without custom modifications,
Mean is generally equal to
CenterLine
Estimated sample standard deviation of the window (batch) means, represented after training as a numeric vector with one value for each channel.
Detection Control
Number of standard errors around the center line, or mean, of the batch-means data, represented as a numeric scalar.
Detection rules, represented as a string vector. Values containing "we" are Western Electric rules, and values containing "n" are Nelson rules.
| Value | Violation Condition |
|---|---|
"n" | All Nelson rules |
"we" | All Western Electric rules |
"n1" | One point below |
"n2" | Nine of nine points on the same side of cl |
"n3" | Six of six points increasing or decreasing |
"n4" | Fourteen points alternating up or down |
"n5" | Two of three points below |
"n6" | Four of five points below |
"n7" | Fifteen of fifteen points between |
"n8" | Eight of eight points below |
"we1" | One point above |
"we3" | Four of five points above |
"we4" | Eight of eight points above cl |
"we5" | One point below |
"we6" | Two of three points below |
"we7" | Four of five points below |
"we8" | Eight of eight points below cl |
"we9" | Fifteen of fifteen points between |
"we10" | Eight of eight points below |
For the control rules that involve more than a single point:
A rule violation at point
iindicates that the set of consecutive points ending at pointitriggers the rule.isR(i)trueonly if pointiis one of the points that violates the rule's condition.Any point whose
X,cl, orsevalue isNaNis not counted and always has anRvalue offalse(logical 0).
Version History
Introduced in R2026a
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Web サイトの選択
Web サイトを選択すると、翻訳されたコンテンツにアクセスし、地域のイベントやサービスを確認できます。現在の位置情報に基づき、次のサイトの選択を推奨します:
また、以下のリストから Web サイトを選択することもできます。
最適なサイトパフォーマンスの取得方法
中国のサイト (中国語または英語) を選択することで、最適なサイトパフォーマンスが得られます。その他の国の MathWorks のサイトは、お客様の地域からのアクセスが最適化されていません。
南北アメリカ
- América Latina (Español)
- Canada (English)
- United States (English)
ヨーロッパ
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)