toyproblem: Toy problem

Description Usage Format

Description

A test dataset based on the piecewise function f(x) = (x+2)^2 when x<0 and f(x) = (x-2)^2 when x>0 with Gaussian noise with a standard deviation of 0.5.

Usage

1

Format

A data frame with 100 rows and 4 variables:

x

seq(-4, 4, length.out = 100)

y_true

true value

y_obs

observation with noise

dydx_true

true derivative


natbprice/tvdiff documentation built on Jan. 10, 2021, 6:51 a.m.