gen_quadratic: Generate Quadratic

View source: R/polynomial.R

gen_quadraticR Documentation

Generate Quadratic

Description

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

Usage

gen_quadratic(n = 500, p = 4, range = c(-1, 1))

Arguments

n

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

p

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

range

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

Value

A data containing a quadratic structure.

Examples

set.seed(20240412)
quadratic <- gen_quadratic(n = 500, p = 4)

cardinalR documentation built on Aug. 21, 2025, 5:27 p.m.