weighted_function_generator function

Generate a weighted function.

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

Returns

weighted function