int Size() const
Return the logical size of the array.
int PickRandomElement() const
Return the value of a random element of the set.
IntegerSet & operator=(const IntegerSet &)=default
Copy assignment.
void Recreate(const int n, const int *p)
Create an integer set from C-array 'p' of 'n' integers. Overwrites any existing set data.
IntegerSet(const IntegerSet &)=default
Copy constructor.
IntegerSet(const int n, const int *p)
Create an integer set from C-array 'p' of 'n' integers.
IntegerSet()=default
< Inherit all Array constructors.
IntegerSet(IntegerSet &&)=default
Move constructor.
IntegerSet & operator=(IntegerSet &&)=default
Move assignment.
int PickElement() const
Return the value of the lowest element of the set.
int Insert(const IntegerSet &s)
Check to see if set 's' is in the list. If not append it to the end of the list. Returns the index of...
int PickRandomElementInSet(int i) const
Return a random value from the ith set in the list.
void AsTable(Table &t) const
Write the list of sets into table 't'.
int PickElementInSet(int i) const
Return the value of the first element of the ith set.
int Lookup(const IntegerSet &s) const
int Size() const
Return the number of integer sets in the list.
real_t p(const Vector &x, real_t t)