plotHistogram
Plot histogram of anomaly scores and detection threshold for trained deep learning anomaly detector
Since R2025a
Description
Add-On Required: This feature requires the Time Series Anomaly Detection for MATLAB add-on.
plotHistogram(
plots computes the anomaly scores for the trained deep learning 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.
This function requires Deep Learning Toolbox™.
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
Extended Capabilities
Version History
Introduced in R2025aSee Also
tcnAD | train | detect | plot | updateDetector