Previous Up Next

class Descripteur



module descripteur

The documentation is here.

Instances of this class correspond to simple descriptors to which numbers are set.

Construction

__init__
builds a Descripteur with a given number.

Optional keyword:
str=s
builds from string s, using read_str;
prop=p
builds from Proportion p, using read_prop;
fic=f
builds from filename f, using read_nf;
fprop=f
builds from filename f of Proportion, using read_prop;


read_str
builds from a string, in format of simple descriptors;
read_nf
builds from a filename;

read_prop
builds from a Proportion, using loglex. For efficiency considerations, the proportions priors and posteriors are translated differently (see descriptors):

copy
returns itself deeply copied Descripteur, with a given number;

equals
copies from another Descripteur.

Handling

num
returns the number of the Descripteur.

Input-Output

Descripteur instances have a specific format that is described in Simple descriptors section.
__str__
outputs in specific format.

Previous Up Next