Learn R Programming

OpenRepGrid (version 0.1.16)

quasiDistributionDistanceSlater: Generate random grids and calculate 'Slater distances' for the elements.

Description

All Slater distances are returned as a vector. The values can be used e.g. to assess the distributions standard deviation.

Usage

quasiDistributionDistanceSlater(
  reps,
  nc,
  ne,
  range,
  prob = NULL,
  progress = TRUE
)

Value

A vector containing Slater distance values.

Arguments

reps

Number of grids to be produced (default is 3).

nc

Number of constructs (default 10).

ne

Number of elements (default 15).

range

Minimal and maximal scale value (default c(1, 5)).

prob

The probability of each rating value to occur. If NULL (default) the distribution is uniform.

progress

Whether to show a progress bar.

See Also

randomGrids(); distanceSlater(); distanceHartmann().

Examples

Run this code
if (FALSE) {

vals <- quasiDistributionDistanceSlater(100, 10, 10, c(1, 5), pro = T)
vals
sd(vals)
hist(vals, breaks = 50)
}

Run the code above in your browser using DataLab