Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

37

38

39

40

41

42

43

from .single_variable import * 

from .multi_variable import * 

from .markov_chains import MarkovChain, to_markov_chain 

from .symbolic_math import * 

from .plots import Plot_continuous 

 

from datascience import * 

 

 

def domain(self, *args): 

    if len(args) == 1: 

        return single_domain(self, args[0]) 

    return multi_domain(self, *args) 

 

 

def states(self, values): 

    table = self.with_column('State', values) 

    table.move_to_start('State') 

    return table 

 

# Binding 

Table.values = domain 

Table.value = domain 

Table.states = states 

Table.chart_colors = chart_colors 

Table.prob_event = prob_event 

Table.event = event 

Table.domain = domain 

Table.probability = probability 

Table.probability_function = probability_function 

Table.normalized = normalized 

Table.ev = ev 

Table.var = var 

Table.sd = sd 

Table.to_joint = to_joint 

Table.sample_from_dist = sample_from_dist 

Table.cdf = cdf 

Table.remove_zeros = remove_zeros 

 

# Markov Chain stuff 

Table.to_markov_chain = to_markov_chain 

Table.transition_probability = transition_probability 

Table.transition_function = transition_function