#NEWLINE# def __init__( self , mu , spread , N = 3 ) : #NEWLINE# #INDENT# GenericTests . check_type ( mu , 'mu' , numpy . ndarray , 1 ) #NEWLINE# GenericTests . check_type ( spread , 'spread' , float ) #NEWLINE# GenericTests . check_type ( N , 'N' , int ) #NEWLINE# if ( mu . dtype != numpy . bool8 ) : #NEWLINE# #INDENT# raise ValueError ( 'Mean must be a bool8 numpy array' ) #NEWLINE# #UNINDENT# Distribution . __init__ ( self , len ( mu ) ) #NEWLINE# if ( not ( ( spread > 0.0 ) and ( spread < 1.0 ) ) ) : #NEWLINE# #INDENT# raise ValueError ( 'Spread must be a probability' ) #NEWLINE# #UNINDENT# self . mu = mu #NEWLINE# self . spread = spread #NEWLINE# self . N = N