RListIfc

interface RListIfc<T> : RElementIfc<T> , MutableList<T>

Author

rossetti

Inheritors

Properties

Link copied to clipboard

If true, the stream will automatically participate in having its stream advanced to the next sub-stream via stream managers

Link copied to clipboard
open override var antithetic: Boolean

Tells the stream to start producing antithetic variates

Link copied to clipboard
abstract val randomElement: T

Returns an element randomly selected from the list

Link copied to clipboard
open override var resetStartStreamOption: Boolean

If true, the stream will automatically participate in having its stream reset to its start stream via stream managers

Link copied to clipboard
abstract var rnStream: RNStreamIfc

the underlying stream of random numbers

Link copied to clipboard
abstract override val size: Int
Link copied to clipboard
open val streamNumber: Int

Functions

Link copied to clipboard
abstract override fun add(element: T): Boolean
abstract fun add(index: Int, element: T)
Link copied to clipboard
abstract override fun addAll(elements: Collection<T>): Boolean
abstract fun addAll(index: Int, elements: Collection<T>): Boolean
Link copied to clipboard
open override fun advanceToNextSubStream()

Positions the RNG at the beginning of its next substream

Link copied to clipboard

Converts the MCB interval data to a data frame

Link copied to clipboard

Converts the MCB result data to a data frame

Link copied to clipboard

Converts the MCB interval data to a data frame

Link copied to clipboard

Converts the observation data to a data frame

Link copied to clipboard

Converts the statistic data to a data frame

Link copied to clipboard

Filters the list such that the returned list has resources that have units available for allocation. The returned list may be empty which indicates that there are no resources in the list that have available units.

Link copied to clipboard
Link copied to clipboard
abstract override fun clear()
Link copied to clipboard
Link copied to clipboard
abstract operator override fun contains(element: T): Boolean
Link copied to clipboard
abstract override fun containsAll(elements: Collection<T>): Boolean
Link copied to clipboard
Link copied to clipboard
open fun forEach(p0: Consumer<in T>)
Link copied to clipboard
abstract operator fun get(index: Int): T
Link copied to clipboard
Link copied to clipboard
abstract fun indexOf(element: T): Int
Link copied to clipboard
abstract override fun isEmpty(): Boolean
Link copied to clipboard
abstract operator override fun iterator(): Iterator<T>
Link copied to clipboard
abstract fun lastIndexOf(element: T): Int
Link copied to clipboard
abstract override fun listIterator(): MutableListIterator<T>
abstract override fun listIterator(index: Int): MutableListIterator<T>
Link copied to clipboard

Returns the total number of units that are available within the resources contained in the list.

Link copied to clipboard
open fun parallelStream(): Stream<T>
Link copied to clipboard
fun List<String>.parseToDoubles(parseFail: Double = Double.NaN): DoubleArray

Converts the list of strings to Doubles

Link copied to clipboard
fun <T> MutableList<T>.permute(streamNum: Int): MutableList<T>
fun <T> MutableList<T>.permute(stream: RNStreamIfc = KSLRandom.defaultRNStream()): MutableList<T>

Permutes the array in place. The array is changed.

fun <T> MutableList<T>.permute(streamNum: Int)
fun <T> MutableList<T>.permute(stream: RNStreamIfc = KSLRandom.defaultRNStream())
Link copied to clipboard
fun <T> List<T>.randomlySelect(streamNum: Int): T
fun <T> List<T>.randomlySelect(stream: RNStreamIfc = KSLRandom.defaultRNStream()): T
Link copied to clipboard
abstract override fun remove(element: T): Boolean
Link copied to clipboard
abstract override fun removeAll(elements: Collection<T>): Boolean
Link copied to clipboard
abstract fun removeAt(index: Int): T
Link copied to clipboard
open fun removeIf(p0: Predicate<in T>): Boolean
Link copied to clipboard
open fun replaceAll(p0: UnaryOperator<T>)
Link copied to clipboard
open override fun resetStartStream()

The resetStartStream method will position the RNG at the beginning of its stream. This is the same location in the stream as assigned when the RNG was created and initialized.

Link copied to clipboard
open override fun resetStartSubStream()

Resets the position of the RNG at the start of the current substream

Link copied to clipboard
abstract override fun retainAll(elements: Collection<T>): Boolean
Link copied to clipboard
open fun sample(): T

Returns an element randomly selected from the list

open fun sample(size: Int): List<T>

Returns sample of size from the list

Link copied to clipboard
fun <T> MutableList<T>.sample(stream: RNStreamIfc = KSLRandom.defaultRNStream()): T

Randomly samples an element from the list.

fun <T> MutableList<T>.sample(sampleSize: Int, stream: RNStreamIfc = KSLRandom.defaultRNStream()): MutableList<T>

Randomly samples sampleSize elements from the list, returning a new list The elements in the list may repeat (sampling with replacement)

Link copied to clipboard
abstract operator fun set(index: Int, element: T): T
Link copied to clipboard
open fun sort(p0: Comparator<in T>)
Link copied to clipboard
open override fun spliterator(): Spliterator<T>
Link copied to clipboard

Returns a statistic that summarizes the data in the collection.

Link copied to clipboard
open fun stream(): Stream<T>
Link copied to clipboard
abstract override fun subList(fromIndex: Int, toIndex: Int): MutableList<T>
Link copied to clipboard
open fun <T : Any> toArray(p0: IntFunction<Array<T>>): Array<T>
Link copied to clipboard
fun List<DesignPoint>.toDataFrame(coded: Boolean = false): AnyFrame

Turns the list of design points into a data frame. The columns of the data frame are the factor names and the rows are the design points values.

Link copied to clipboard

For compatibility purposes converts the list of CSV records to a list of string arrays

Link copied to clipboard
fun List<Double?>.toPrimitives(replaceNull: Double = 0.0): DoubleArray

Converts any null values to replaceNull. For List use toDoubleArray()

fun List<Int?>.toPrimitives(replaceNull: Int = 0): IntArray

Converts any null values to replaceNull. For List use toDoubleArray()

fun List<Long?>.toPrimitives(replaceNull: Long = 0): LongArray

Converts any null values to replaceNull. For List use toDoubleArray()

Link copied to clipboard
open fun useStreamNumber(streamNumber: Int)

Assigns the stream associated with the supplied number from the default RNStreamProvider

Link copied to clipboard
Link copied to clipboard
fun List<DoubleArray>.write(out: PrintWriter = KSLFileUtil.SOUT, df: DecimalFormat? = null)