clProbDist
An OpenCL library for probability distributions
exponential.h
Go to the documentation of this file.
1 /*
2  * Authors:
3  *
4  * Nabil Kemerchou <kemerchn@iro.umontreal.ca> (2015)
5  * David Munger <mungerd@iro.umontreal.ca> (2015)
6  * Pierre L'Ecuyer <lecuyer@iro.umontreal.ca> (2015)
7  *
8  */
9 
10 #pragma once
11 #ifndef CLPROBDIST_EXPONENTIALDIST_H
12 #define CLPROBDIST_EXPONENTIALDIST_H
13 
21 #include "clProbDist/clProbDist.h"
22 #include "clProbDist/continuous.h"
23 
28 typedef struct _clprobdistExponential clprobdistExponential;
29 
30 
47 clprobdistExponential* clprobdistExponentialCreate(cl_double lambda, size_t* bufSize, clprobdistStatus* err);
48 
52 
63 cl_double clprobdistExponentialDensityWithObject(const clprobdistExponential* dist, cl_double x, clprobdistStatus* err);
64 
67 cl_double clprobdistExponentialCDFWithObject(const clprobdistExponential* dist, cl_double x, clprobdistStatus* err);
68 
71 cl_double clprobdistExponentialComplCDFWithObject(const clprobdistExponential* dist, cl_double x, clprobdistStatus* err);
72 
75 cl_double clprobdistExponentialInverseCDFWithObject(const clprobdistExponential* dist, cl_double u, clprobdistStatus* err);
76 
77 
80 cl_double clprobdistExponentialMeanWithObject(const clprobdistExponential* dist, clprobdistStatus* err);
81 
84 cl_double clprobdistExponentialVarianceWithObject(const clprobdistExponential* dist, clprobdistStatus* err);
85 
88 cl_double clprobdistExponentialStdDeviationWithObject(const clprobdistExponential* dist, clprobdistStatus* err);
89 
92 cl_double clprobdistExponentialGetLambda(const clprobdistExponential* dist, clprobdistStatus* err);
93 
96 clprobdistStatus clprobdistExponentialSetLambda(clprobdistExponential* dist, cl_double newlambda);
97 
115 cl_double clprobdistExponentialDensity(cl_double lambda, cl_double x, clprobdistStatus* err);
116 
126 cl_double clprobdistExponentialCDF(cl_double lambda, cl_double x, clprobdistStatus* err);
127 
137 cl_double clprobdistExponentialComplCDF(cl_double lambda, cl_double x, clprobdistStatus* err);
138 
148 cl_double clprobdistExponentialInverseCDF(cl_double lambda, cl_double u, clprobdistStatus* err);
149 
158 cl_double clprobdistExponentialMean(cl_double lambda, clprobdistStatus* err);
159 
168 cl_double clprobdistExponentialVariance(cl_double lambda, clprobdistStatus* err);
169 
178 cl_double clprobdistExponentialStdDeviation(cl_double lambda, clprobdistStatus* err);
179 
183 #endif
cl_double clprobdistExponentialMeanWithObject(const clprobdistExponential *dist, clprobdistStatus *err)
Mean of the distribution [device].
cl_double clprobdistExponentialCDF(cl_double lambda, cl_double x, clprobdistStatus *err)
Cumulative density function [device].
Library definitions common to all probability distributions.
cl_double clprobdistExponentialGetLambda(const clprobdistExponential *dist, clprobdistStatus *err)
Return the value of the inverse mean [device].
cl_double clprobdistExponentialComplCDFWithObject(const clprobdistExponential *dist, cl_double x, clprobdistStatus *err)
Complementary CDF or reliability function [device].
cl_double clprobdistExponentialVarianceWithObject(const clprobdistExponential *dist, clprobdistStatus *err)
Variance of the distribution [device].
cl_double clprobdistExponentialCDFWithObject(const clprobdistExponential *dist, cl_double x, clprobdistStatus *err)
Cumulative density function [device].
cl_double clprobdistExponentialMean(cl_double lambda, clprobdistStatus *err)
Mean of the distribution [device].
cl_double clprobdistExponentialStdDeviationWithObject(const clprobdistExponential *dist, clprobdistStatus *err)
Standard deviation of the distribution [device].
clprobdistStatus clprobdistExponentialDestroy(clprobdistExponential *dist)
Destroy a distribution object.
clprobdistStatus clprobdistExponentialSetLambda(clprobdistExponential *dist, cl_double newlambda)
Change the value of the inverse mean [device].
clprobdistExponential * clprobdistExponentialCreate(cl_double lambda, size_t *bufSize, clprobdistStatus *err)
Create a distribution object.
cl_double clprobdistExponentialDensity(cl_double lambda, cl_double x, clprobdistStatus *err)
Probability density function [device].
cl_double clprobdistExponentialDensityWithObject(const clprobdistExponential *dist, cl_double x, clprobdistStatus *err)
Probability density function [device].
struct _clprobdistExponential clprobdistExponential
Exponential distribution object [device].
Definition: exponential.clh:53
cl_double clprobdistExponentialStdDeviation(cl_double lambda, clprobdistStatus *err)
Standard deviation of the distribution [device].
cl_double clprobdistExponentialInverseCDFWithObject(const clprobdistExponential *dist, cl_double u, clprobdistStatus *err)
Inverse cumulative density function [device].
cl_double clprobdistExponentialInverseCDF(cl_double lambda, cl_double u, clprobdistStatus *err)
Inverse cumulative density function [device].
cl_double clprobdistExponentialVariance(cl_double lambda, clprobdistStatus *err)
Variance of the distribution [device].
cl_double clprobdistExponentialComplCDF(cl_double lambda, cl_double x, clprobdistStatus *err)
Complementary CDF or reliability function [device].