darsia.PWTransformation#

class PWTransformation(supports=None, values=None)[source]#

Bases: object

Transformation which cuts off values below 0 and ensures monotonicity.

Methods

inverse(value)

Compute the inverse transformation at given value(s).

load(path)

Load the transformation from file in csv format.

log(log)

Plot the transformation and store to file.

save(path)

Save the transformation to file in csv format.

update([supports, values, dofs])

values_from_diff(values_diff)

classmethod load(path)[source]#

Load the transformation from file in csv format.

Parameters:
pathPath

Path to the file from which the transformation should be loaded.

inverse(value)[source]#

Compute the inverse transformation at given value(s).

log(log)[source]#

Plot the transformation and store to file.

save(path)[source]#

Save the transformation to file in csv format.

Parameters:
pathPath

Path to the file where the transformation should be saved.