go-distribution

go-distribution

Functions

Properties

gdouble location Read / Write
gdouble scale Read / Write

Types and Values

Object Hierarchy

    GObject
    ╰── GODistribution

Implemented Interfaces

GODistribution implements GOPersist.

Description

Functions

go_distribution_type_to_string ()

char const *
go_distribution_type_to_string (GODistributionType type);


go_distribution_type_from_string ()

GODistributionType
go_distribution_type_from_string (char const *name);


go_distribution_new ()

GODistribution *
go_distribution_new (GODistributionType type);


go_distribution_get_distribution_type ()

GODistributionType
go_distribution_get_distribution_type (GODistribution *dist);


go_distribution_get_distribution_name ()

char const *
go_distribution_get_distribution_name (GODistribution *dist);


go_distribution_get_density ()

double
go_distribution_get_density (GODistribution *dist,
                             double x);


go_distribution_get_cumulative ()

double
go_distribution_get_cumulative (GODistribution *dist,
                                double x);


go_distribution_get_ppf ()

double
go_distribution_get_ppf (GODistribution *dist,
                         double x);


go_distribution_get_hazard ()

double
go_distribution_get_hazard (GODistribution *dist,
                            double x);


go_distribution_get_cumulative_hazard ()

double
go_distribution_get_cumulative_hazard (GODistribution *dist,
                                       double x);


go_distribution_get_survival ()

double
go_distribution_get_survival (GODistribution *dist,
                              double x);


go_distribution_get_inverse_survival ()

double
go_distribution_get_inverse_survival (GODistribution *dist,
                                      double x);


go_distribution_scale ()

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

Types and Values

enum GODistributionType

Members

GO_DISTRIBUTION_INVALID

   

GO_DISTRIBUTION_NORMAL

   

GO_DISTRIBUTION_UNIFORM

   

GO_DISTRIBUTION_CAUCHY

   

GO_DISTRIBUTION_WEIBULL

   

GO_DISTRIBUTION_LOGNORMAL

   

GO_DISTRIBUTION_MAX

   

GODistribution

typedef struct _GODistribution GODistribution;

Property Details

The “location” property

  “location”                 gdouble

Location.

Flags: Read / Write

Default value: 0


The “scale” property

  “scale”                    gdouble

Scale.

Flags: Read / Write

Allowed values: >= G_MINDOUBLE

Default value: 1