Skip to main content
Ctrl+K

skchange

  • User guide
  • API reference
  • Developer guide
  • Releases
  • GitHub
  • User guide
  • API reference
  • Developer guide
  • Releases
  • GitHub

Section Navigation

  • Base
    • BaseDetector
    • BaseIntervalScorer
  • Anomaly detectors
    • BaseSegmentAnomalyDetector
    • CircularBinarySegmentation
    • StatThresholdAnomaliser
  • Anomaly scores
    • BaseSaving
    • Saving
    • L2Saving
    • BaseLocalAnomalyScore
    • LocalAnomalyScore
    • to_saving
    • to_local_anomaly_score
  • Change detectors
    • BaseChangeDetector
    • MovingWindow
    • SeededBinarySegmentation
  • Change scores
    • BaseChangeScore
    • ChangeScore
    • CUSUM
    • to_change_score
  • Costs
    • BaseCost
    • L2Cost
    • GaussianCost
    • check_mean
    • check_var
    • check_cov
  • Datasets
    • generate_anomalous_data
    • generate_changing_data
    • generate_alternating_data
    • add_linspace_outliers
    • load_hvac_system_data
  • Utility functions
    • check_data
    • check_cuts_array
    • check_larger_than
    • check_smaller_than
    • check_in_interval
  • API reference
  • Costs
  • check_var

check_var#

check_var(var: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | Number, X: ndarray) → ndarray[source]#

Check if the fixed variance parameter is valid.

Parameters:
varnp.ndarray or numbers.Number

Fixed variance for the cost calculation.

Xnp.ndarray

2d input data.

Returns:
varnp.ndarray

Fixed variance for the cost calculation.

On this page
  • check_var
Show Source

© Copyright 2023 - 2024 (BSD-3-Clause License).

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.0.