SeparableNDFunction

  • Represents a function of N arguments as a sum of single-argument functions and a constant price.

  • Utilizes a JSON structure with components defining the functions for each argument and constantPrice for the constant term.

  • components is a map where each key corresponds to an argument and its value is a Function1D object defining the function for that argument.

Function of N arguments expressed as a sum of functions of one argument.

JSON representation
{
  "components": {
    string: {
      object (Function1D)
    },
    ...
  },
  "constantPrice": number
}
Fields
components

map (key: string, value: object (Function1D))

Components of the function, with one entry per argument/dimension.

An object containing a list of "key": value pairs. Example: { "name": "wrench", "mass": "1.3kg", "count": "3" }.

constantPrice

number

Constant part of the function.