Skip to content

Outcome

medasmarathon edited this page May 25, 2022 · 2 revisions

Description

Simulate the Outcome characterized by its name.

In probability theory, an outcome is a possible result of an experiment or trial.[1] Each possible outcome of a particular experiment is unique, and different outcomes are mutually exclusive (only one outcome will occur on each trial of the experiment). All of the possible outcomes of an experiment form the elements of a sample space.[2]

Outcome definition - Wiki

Reference

   from probnode import Outcome
Constructor Description Link
Outcome(name: str) Initialize an Outcome with name basic
Field Description Link
outcome.name Outcome name basic

Usage suggestions

Though this class may seem primitive. It can be readily inherited by user to create their own definition of Outcome for subsequent use. Though if so, they may have to manually implement its __eq__, __repr__ as well as __hash__ to avoid any conflict when using Outcome in other classes of this library

Clone this wiki locally