int Size() const
Return the logical size of the array.
int operator==(IntegerSet &s)
Return 1 if the sets are equal and 0 otherwise.
void Recreate(const int n, const int *p)
Create an integer set from C-array 'p' of 'n' integers. Overwrites any existing set data.
int PickRandomElement()
Return the value of a random element of the set.
IntegerSet(const int n, const int *p)
Create an integer set from C-array 'p' of 'n' integers.
int Size()
Return the size of the set.
IntegerSet & operator=(const IntegerSet &s)
Create a copy of set 's'.
IntegerSet()
Create an empty set.
int PickElement()
Return the value of the lowest element of the set.
int Size()
Return the number of integer sets in the list.
int Insert(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...
void AsTable(Table &t)
Write the list of sets into table 't'.
int Lookup(IntegerSet &s)
int PickElementInSet(int i)
Return the value of the first element of the ith set.
int PickRandomElementInSet(int i)
Return a random value from the ith set in the list.
real_t p(const Vector &x, real_t t)