class_docstr: A probability distribution for discrete values.
  
  Parameters
  ----------
  seed
      Random number generator seed for reproducibility.
docstr: Updates the parameters of the distribution given a new observation.
docstr_tok: ["Updates","the","parameters","of","the","distribution","given","a","new","observation","."]
code: def update(self, x: bool):
      """Updates the parameters of the distribution given a new observation."""
  
imports: from __future__ import annotations
  import abc
  import random
  import typing
  from river import base
label_desc: Use image node_id 1 for calling the BinaryDistribution obj's underlying member method code with example usage: obj.update(x) without return types