class_docstr: Class for incrementally computing the recency-weighted variance of a series of numbers.
class_docstr_tok: ["Class","for","incrementally","computing","the","recency-weighted","variance","of","a","series","of","numbers","."]
docstr: :param recency_weight: Recency weight to use when updating the
      recency weighted variance.
  
  Letting ``w`` be the recency weight,
  
  .. math::
      \text{RWV}_w(x_t) = \text{EMA}_w({x^2_t}) - \text{EMA}_w(x_t)^2
docstr_tok: [":","param","recency_weight",":","Recency","weight","to","use","when","updating","the","recency","weighted","variance",".","Letting","``","w","``","be","the","recency","weight",",","..","math",":",":","\\text","{","RWV","}","_w","(","x_t",")","=","\\text","{","EMA","}","_w","(","{","x^2_t","}",")","-","\\text","{","EMA","}","_w","(","x_t",")","^2"]
code: def __init__(self, recency_weight: float, **kwargs):
      """
      :param recency_weight: Recency weight to use when updating the
          recency weighted variance.
  
      Letting ``w`` be the recency weight,
  
      .. math::
          \\text{RWV}_w(x_t) = \\text{EMA}_w({x^2_t}) - \\text{EMA}_w(x_t)^2
      """
      super().__init__(**kwargs)
      self.recency_weight = recency_weight
  
imports: from abc import abstractmethod
  from typing import List
  from math import sqrt
  import numpy
label_desc: Use image node_id 1 to create a new RecencyWeightedVariance object from inherited base classes: Variance with example: obj = RecencyWeightedVariance(recency_weight)