synthetic_sine_curve {less}R Documentation

Synthetic Sine Curve

Description

A simple function to generate n_samples from sine curve in the range (-10, 10) with some amplitude. The function returns the dataset (X, y), and plots the function (curve) along with the dataset (circles)

Usage

synthetic_sine_curve(n_samples = 200)

Arguments

n_samples

Number of data points to be generated

Examples

sine_data_list <- synthetic_sine_curve()
X_sine <- sine_data_list[[1]]
y_sine <- sine_data_list[[2]]

[Package less version 0.1.0 Index]