plotHistogram
Description
plotHistogram(
plots computes the anomaly scores for the detector detector
,data1
)detector
using the
data in data1
, and plots a histogram of the scores along with the
threshold in detector.threshold
.
Use this syntax, for example, when you have trained a detector using the normal data in
data1
, and you want to examine the score distribution and the
threshold placement.
For an example of using plotHistogram
as part of the detector
development workflow, see Train and Test TCN Anomaly Detector.
plotHistogram(
plots the histograms for two sets of data, detector
,data1
,data2
)data1
and
data2
, together in the same figure.
Use this syntax, for example, when you have both normal data and test data and you want
to view the histogram of the associated anomaly scores together. You can use this syntax
without running detect
first.
plotHistogram(___,
sets additional options using one or more name-value arguments.Name=Value
)
Input Arguments
Name-Value Arguments
Version History
Introduced in R2025a