Generate a weighted function.

weighted_function_generator(func, weights, params)

Arguments

func

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

weights

Weighting of each cluster.

params

Cluster parameter list

Value

weighted function