permute

inline fun <T> permute(dc: DataColumn<T>, stream: RNStreamIfc = KSLRandom.defaultRNStream()): DataColumn<T>

The data column dc, is not changed. The returned data column holds a permutation of dc

Return

a new data column with a permutation of the rows of dc

Parameters

T

the type of the data type held in the data column

dc

the data column

stream

the stream for the source of randomness


inline fun <T> permute(dc: DataColumn<T>, streamNum: Int): DataColumn<T>

The data column dc, is not changed. The returned data column holds a permutation of dc

Return

a new data column with a permutation of the rows of dc

Parameters

T

the type of the data type held in the data column

dc

the data column

streamNum

the stream number for the source of randomness


fun <T> permute(df: DataFrame<T>, streamNum: Int): DataFrame<T>

The data frame df, is not changed. The returned data frame holds a permutation of df

Return

a new data frame with a permutation of the rows of df

Parameters

T

the type of the data schema held in the data frame

df

the data frame

streamNum

the stream number for the source of randomness


fun <T> permute(df: DataFrame<T>, stream: RNStreamIfc = KSLRandom.defaultRNStream()): DataFrame<T>

The data frame df, is not changed. The returned data frame holds a permutation of df

Return

a new data frame with a permutation of the rows of df

Parameters

T

the type of the data schema held in the data frame

df

the data frame

stream

the stream for the source of randomness