Learn R Programming

TestFunctions (version 0.2.2)

funcprofile: Profile a function

Description

Gives details about how linear it is.

Usage

funcprofile(func, d, n = 1000 * d, bins = 30)

Value

Nothing, prints and plots

Arguments

func

A function with a single output

d

The number of input dimensions for the function

n

The number of points to use for the linear model.

bins

Number of bins in histogram.

Examples

Run this code
funcprofile(ackley, 2)

Run the code above in your browser using DataLab