Learn R Programming

cardinalR (version 1.0.6)

gen_unifcube: Generate Cube with uniform points

Description

This function generates a grid dataset with specified uniform points along each axes.

Usage

gen_unifcube(n = 500, p = 4)

Value

A data containing the cube with uniform points.

Arguments

n

A numeric vector (default: 500) representing the sample size.

p

A numeric value (default: 4) representing the number of dimensions.

Examples

Run this code
set.seed(20240412)
unifcube <- gen_unifcube(n = 500, p = 4)

Run the code above in your browser using DataLab