|
ccgsl 2.7.2
C++wrappersforGnuScientificLibrary
|
Empirical probability density functions. More...
#include <histogram2d.hpp>

Public Member Functions | |
| pdf () | |
| The default constructor is only really useful for assigning to. More... | |
| pdf (size_t const nx, size_t const ny) | |
| The default constructor creates a new pdf with n elements. More... | |
| pdf (gsl_histogram2d_pdf *v) | |
| Could construct from a gsl_histogram2d_pdf. More... | |
| pdf (pdf const &v) | |
| The copy constructor. More... | |
| pdf & | operator= (pdf const &v) |
| The assignment operator. More... | |
| ~pdf () | |
| The destructor only deletes the pointers if count reaches zero. More... | |
| pdf (pdf &&v) | |
| Move constructor. More... | |
| pdf & | operator= (pdf &&v) |
| Move operator. More... | |
| bool | operator== (pdf const &v) const |
| Two pdf are identically equal if their elements are identical. More... | |
| bool | operator!= (pdf const &v) const |
| Two pdf are different if their elements are not identical. More... | |
| bool | operator< (pdf const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator> (pdf const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator<= (pdf const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | operator>= (pdf const &v) const |
| A container needs to define an ordering for sorting. More... | |
| bool | empty () const |
| Find if the pdf is empty. More... | |
| void | swap (pdf &v) |
| Swap two pdf objects. More... | |
| gsl_histogram2d_pdf * | get () const |
| Get the gsl_histogram2d_pdf. More... | |
| bool | unique () const |
| Find if this is the only object sharing the gsl_histogram2d_pdf. More... | |
| size_t | use_count () const |
| Find how many pdf objects share this pointer. More... | |
| operator bool () const | |
| Allow conversion to bool. More... | |
| int | init (histogram2d const &h) const |
| C++ version of gsl_histogram2d_pdf_init(). More... | |
| int | sample (double r1, double r2, double &x, double &y) |
| C++ version of gsl_histogram2d_pdf_sample(). More... | |
Private Attributes | |
| gsl_histogram2d_pdf * | ccgsl_pointer |
| The shared pointer. More... | |
| size_t * | count |
| The shared reference count. More... | |
Empirical probability density functions.
Definition at line 626 of file histogram2d.hpp.
|
inline |
The default constructor is only really useful for assigning to.
Definition at line 631 of file histogram2d.hpp.
References ccgsl_pointer, and count.
Referenced by operator=().
|
inlineexplicit |
The default constructor creates a new pdf with n elements.
| nx | The number of bin slices in x direction |
| ny | The number of bin slices in y direction |
Definition at line 642 of file histogram2d.hpp.
References ccgsl_pointer, count, gsl::histogram2d::nx(), and gsl::histogram2d::ny().
|
inlineexplicit |
Could construct from a gsl_histogram2d_pdf.
This is not usually a good idea. In this case we should not use gsl_histogram2d_pdf_free() to deallocate the memory.
| v | The pdf |
Definition at line 658 of file histogram2d.hpp.
References ccgsl_pointer, and count.
|
inline |
The copy constructor.
This creates a new reference to the workspace.
| v | The pdf to copy. |
Definition at line 669 of file histogram2d.hpp.
References ccgsl_pointer, and count.
|
inline |
The destructor only deletes the pointers if count reaches zero.
Definition at line 688 of file histogram2d.hpp.
References ccgsl_pointer, and count.
|
inline |
Move constructor.
| v | The pdf to move. |
Definition at line 700 of file histogram2d.hpp.
References count.
|
inline |
Find if the pdf is empty.
true if has size zero; otherwise false Definition at line 777 of file histogram2d.hpp.
References ccgsl_pointer.
|
inline |
Get the gsl_histogram2d_pdf.
Definition at line 803 of file histogram2d.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_histogram2d_pdf_init().
| h | A histogram2d |
Definition at line 830 of file histogram2d.hpp.
References gsl::histogram2d::get(), and get().
|
inlineexplicit |
Allow conversion to bool.
true or false according as this contains a pointer to a gsl_histogram2d_pdf. Definition at line 823 of file histogram2d.hpp.
References ccgsl_pointer.
|
inline |
Two pdf are different if their elements are not identical.
| v | The pdf to be compared with this |
false or true according as this and v have identical elements or not Definition at line 730 of file histogram2d.hpp.
References operator==().
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a pdf is nonnegative.
| v | The pdf to be compared with this |
false or true according as this is less than v lexicographically Definition at line 742 of file histogram2d.hpp.
References ccgsl_pointer.
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a pdf is nonnegative.
| v | The pdf to be compared with this |
false or true according as this is less than or equal to v lexicographically Definition at line 762 of file histogram2d.hpp.
References ccgsl_pointer.
Move operator.
| v | The pdf to move. |
Definition at line 709 of file histogram2d.hpp.
References pdf().
The assignment operator.
This copies elementwise.
| v | The pdf to copy |
Definition at line 676 of file histogram2d.hpp.
References ccgsl_pointer, and count.
|
inline |
Two pdf are identically equal if their elements are identical.
| v | The pdf to be compared with this |
true or false according as this and v have identical elements or not Definition at line 722 of file histogram2d.hpp.
References ccgsl_pointer.
Referenced by operator!=().
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a pdf is nonnegative.
| v | The pdf to be compared with this |
false or true according as this is greater than v lexicographically Definition at line 752 of file histogram2d.hpp.
References ccgsl_pointer.
|
inline |
A container needs to define an ordering for sorting.
This uses standard lexicographical ordering and so is not useful, for example, for checking, that a pdf is nonnegative.
| v | The pdf to be compared with this |
false or true according as this is no less than v lexicographically Definition at line 772 of file histogram2d.hpp.
References ccgsl_pointer.
|
inline |
C++ version of gsl_histogram2d_pdf_sample().
| r1 | A random number (between zero and 1) |
| r2 | A random number (between zero and 1) |
| x | The x value (return value) |
| y | The y value (return value) |
Definition at line 853 of file histogram2d.hpp.
References get().
|
inline |
Swap two pdf objects.
This works even if the pdf have different sizes because it swaps pointers.
| v | The pdf to swap with this. |
Definition at line 784 of file histogram2d.hpp.
References ccgsl_pointer, and count.
|
inline |
Find if this is the only object sharing the gsl_histogram2d_pdf.
true or falses according as this is the only pdf object sharing the gsl_histogram2d_pdf. Definition at line 809 of file histogram2d.hpp.
References count.
|
inline |
Find how many pdf objects share this pointer.
Definition at line 814 of file histogram2d.hpp.
References count.
|
private |
The shared pointer.
Definition at line 792 of file histogram2d.hpp.
Referenced by empty(), get(), operator bool(), operator<(), operator<=(), operator=(), operator==(), operator>(), operator>=(), pdf(), swap(), and ~pdf().
|
private |
The shared reference count.
Definition at line 796 of file histogram2d.hpp.
Referenced by operator=(), pdf(), swap(), unique(), use_count(), and ~pdf().