Skip to main content

atoti.array.replace(measure, replacements, /)

Return a measure where elements equal to a key of the replacements mapping are replaced with the corresponding value.
  • Parameters:
    • measure (VariableMeasureConvertible) – The array measure in which to replace the elements.
    • replacements (Mapping [float , float ] | Mapping [int , int ]) – The mapping from the old values to the new ones.
  • Return type: MeasureDefinition

Example