RandomSet

scalation.random.RandomSet
case class RandomSet(count: Int, max: Int, skip: Int, stream: Int) extends VariateSet

The RandomSet class generates a random set/subset of integers.

Value parameters

count

the size of the set (number of integer elements)

max

generate integers in the range 0 (inclusive) to max (inclusive)

skip

skip this number, i.e, do not use it

stream

the random number stream

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class VariateSet
class Object
trait Matchable
class Any
Show all

Members list

Value members

Concrete methods

def gen: Set[Double]

Determine the next random double set for the particular distribution.

Determine the next random double set for the particular distribution.

Attributes

def igen: Set[Int]

Generate a random set of unique integers 'r' in the range '0 to max'. The size of the set is given by 'count'.

Generate a random set of unique integers 'r' in the range '0 to max'. The size of the set is given by 'count'.

Attributes

def igen(n: Int, mx: Int, skp: Int): Set[Int]

Generate a random set of unique integers 'r' in the range '0 to mx'.

Generate a random set of unique integers 'r' in the range '0 to mx'.

Value parameters

mx

generate integers in the range 0 (inclusive) to 'mx' (inclusive)

n

the size of the resultant random subset r

skp

skip this number, i.e, do not use it

Attributes

def igen(s: Set[Int], n: Int): Set[Int]

Generate a set of unique integers 'r' that is a random subset of set 's'.

Generate a set of unique integers 'r' that is a random subset of set 's'.

Value parameters

n

the size of the resultant random subset r

s

the given set

Attributes

def mean: Double

Compute the mean for the particular distribution.

Compute the mean for the particular distribution.

Attributes

def pf(s: Set[Int]): Double

Compute the probability function (pf): The probability density function (pdf) for continuous RVV's or the probability mass function (pmf) for discrete RVV's.

Compute the probability function (pf): The probability density function (pdf) for continuous RVV's or the probability mass function (pmf) for discrete RVV's.

Value parameters

z

the mass point/set whose probability is sought

Attributes

Inherited methods

def discrete: Boolean

Determine whether the distribution is discrete or continuous.

Determine whether the distribution is discrete or continuous.

Attributes

Inherited from:
VariateSet
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product