pyhs3.functions.ProductFunction

class pyhs3.functions.ProductFunction(*, name, factors)[source]

Product function that multiplies factors together.

Parameters:
__init__(*, name, factors)[source]

Initialize a ProductFunction.

Parameters:
  • name (str) – Name of the function

  • factors (list[str]) – List of factor names to multiply together

Methods

__init__(*, name, factors)

Initialize a ProductFunction.

expression(context)

Evaluate the product function.

from_dict(config)

Create a ProductFunction from dictionary configuration.