Synopsis

                    GODistribution;
enum                GODistributionType;
double              go_distribution_get_cumulative      (GODistribution *dist,
                                                         double x);
double              go_distribution_get_cumulative_hazard
                                                        (GODistribution *dist,
                                                         double x);
long double         go_distribution_get_cumulative_hazardl
                                                        (GODistribution *dist,
                                                         long double x);
long double         go_distribution_get_cumulativel     (GODistribution *dist,
                                                         long double x);
double              go_distribution_get_density         (GODistribution *dist,
                                                         double x);
long double         go_distribution_get_densityl        (GODistribution *dist,
                                                         long double x);
char const *        go_distribution_get_distribution_name
                                                        (GODistribution *dist);
GODistributionType  go_distribution_get_distribution_type
                                                        (GODistribution *dist);
double              go_distribution_get_hazard          (GODistribution *dist,
                                                         double x);
long double         go_distribution_get_hazardl         (GODistribution *dist,
                                                         long double x);
double              go_distribution_get_inverse_survival
                                                        (GODistribution *dist,
                                                         double x);
long double         go_distribution_get_inverse_survivall
                                                        (GODistribution *dist,
                                                         long double x);
double              go_distribution_get_ppf             (GODistribution *dist,
                                                         double x);
long double         go_distribution_get_ppfl            (GODistribution *dist,
                                                         long double x);
double              go_distribution_get_survival        (GODistribution *dist,
                                                         double x);
long double         go_distribution_get_survivall       (GODistribution *dist,
                                                         long double x);
GODistribution *    go_distribution_new                 (GODistributionType type);
void                go_distribution_scale               (GODistribution *dist,
                                                         double location,
                                                         double scale);
GODistributionType  go_distribution_type_from_string    (char const *name);
char const *        go_distribution_type_to_string      (GODistributionType type);

Object Hierarchy

  GObject
   +----GODistribution

Implemented Interfaces

GODistribution implements GOPersist.

Properties

  "location"                 gdouble               : Read / Write
  "scale"                    gdouble               : Read / Write

Description

Details

GODistribution

typedef struct _GODistribution GODistribution;


enum GODistributionType

typedef enum {
	GO_DISTRIBUTION_INVALID = -1,
	GO_DISTRIBUTION_NORMAL,
	GO_DISTRIBUTION_UNIFORM,
	GO_DISTRIBUTION_CAUCHY,
	GO_DISTRIBUTION_WEIBULL,
	GO_DISTRIBUTION_LOGNORMAL,
	GO_DISTRIBUTION_MAX
} GODistributionType;

GO_DISTRIBUTION_INVALID

GO_DISTRIBUTION_NORMAL

Normal.

GO_DISTRIBUTION_UNIFORM

Uniform.

GO_DISTRIBUTION_CAUCHY

Cauchy.,

GO_DISTRIBUTION_WEIBULL

Weibull.

GO_DISTRIBUTION_LOGNORMAL

Lognormal.

GO_DISTRIBUTION_MAX


go_distribution_get_cumulative ()

double              go_distribution_get_cumulative      (GODistribution *dist,
                                                         double x);


go_distribution_get_cumulative_hazard ()

double              go_distribution_get_cumulative_hazard
                                                        (GODistribution *dist,
                                                         double x);


go_distribution_get_cumulative_hazardl ()

long double         go_distribution_get_cumulative_hazardl
                                                        (GODistribution *dist,
                                                         long double x);


go_distribution_get_cumulativel ()

long double         go_distribution_get_cumulativel     (GODistribution *dist,
                                                         long double x);


go_distribution_get_density ()

double              go_distribution_get_density         (GODistribution *dist,
                                                         double x);


go_distribution_get_densityl ()

long double         go_distribution_get_densityl        (GODistribution *dist,
                                                         long double x);


go_distribution_get_distribution_name ()

char const *        go_distribution_get_distribution_name
                                                        (GODistribution *dist);


go_distribution_get_distribution_type ()

GODistributionType  go_distribution_get_distribution_type
                                                        (GODistribution *dist);


go_distribution_get_hazard ()

double              go_distribution_get_hazard          (GODistribution *dist,
                                                         double x);


go_distribution_get_hazardl ()

long double         go_distribution_get_hazardl         (GODistribution *dist,
                                                         long double x);


go_distribution_get_inverse_survival ()

double              go_distribution_get_inverse_survival
                                                        (GODistribution *dist,
                                                         double x);


go_distribution_get_inverse_survivall ()

long double         go_distribution_get_inverse_survivall
                                                        (GODistribution *dist,
                                                         long double x);


go_distribution_get_ppf ()

double              go_distribution_get_ppf             (GODistribution *dist,
                                                         double x);


go_distribution_get_ppfl ()

long double         go_distribution_get_ppfl            (GODistribution *dist,
                                                         long double x);


go_distribution_get_survival ()

double              go_distribution_get_survival        (GODistribution *dist,
                                                         double x);


go_distribution_get_survivall ()

long double         go_distribution_get_survivall       (GODistribution *dist,
                                                         long double x);


go_distribution_new ()

GODistribution *    go_distribution_new                 (GODistributionType type);


go_distribution_scale ()

void                go_distribution_scale               (GODistribution *dist,
                                                         double location,
                                                         double scale);


go_distribution_type_from_string ()

GODistributionType  go_distribution_type_from_string    (char const *name);


go_distribution_type_to_string ()

char const *        go_distribution_type_to_string      (GODistributionType type);

Property Details

The "location" property

  "location"                 gdouble               : Read / Write

Location.

Default value: 0


The "scale" property

  "scale"                    gdouble               : Read / Write

Scale.

Allowed values: >= G_MINDOUBLE

Default value: 1