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
  • L2Cost

L2Cost#

L2Cost(param: Buffer | _SupportsArray[dtype[Any]] | _NestedSequence[_SupportsArray[dtype[Any]]] | bool | int | float | complex | str | bytes | _NestedSequence[bool | int | float | complex | str | bytes] | Number | None = None)[source]#

L2 cost of a constant mean.

Parameters:
paramfloat or array-like, optional (default=None)

Fixed mean for the cost calculation. If None, the optimal mean is calculated.

On this page
  • L2Cost
Show Source

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

Created using Sphinx 8.1.3.

Built with the PyData Sphinx Theme 0.16.0.