three_diff_linear: Generate Three Different Linear Data with Noise

View source: R/linear.R

three_diff_linearR Documentation

Generate Three Different Linear Data with Noise

Description

This function generates a dataset consisting of three different linear patterns with added noise.

Usage

three_diff_linear(n, num_noise, min_n, max_n)

Arguments

n

The total number of samples to generate.

num_noise

The number of additional noise dimensions to add to the data.

min_n

The minimum value for the noise dimensions.

max_n

The maximum value for the noise dimensions.

Value

A matrix containing the three different linear data with added noise.

Examples

set.seed(20240412)
three_diff_linear <- three_diff_linear(
  n = 150, num_noise = 2, min_n = -0.05,
  max_n = 0.05
)

cardinalR documentation built on May 29, 2024, 4:37 a.m.