Learn R Programming

dirichletprocess (version 0.4.2)

weighted_function_generator: Generate a weighted function.

Description

Generate a weighted function.

Usage

weighted_function_generator(func, weights, params)

Value

weighted function

Arguments

func

Function that is used of the form func(x, params).

weights

Weighting of each cluster.

params

Cluster parameter list