gen_cubic: Generate Cubic

View source: R/polynomial.R

gen_cubicR Documentation

Generate Cubic

Description

This function generates a dataset representing a structure with a cubic pattern.

Usage

gen_cubic(n = 500, range = c(-1, 2))

Arguments

n

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

range

A numeric vector (default: c(-1, 2)) representing the range along x1 axis.

Value

A data containing a cubic structure.

Examples

set.seed(20240412)
cubic <- gen_cubic(n = 500)

cardinalR documentation built on Dec. 18, 2025, 9:08 a.m.