Skip to contents

This function scales an `mfd` object by calculating a scaling factor based on the variance of its evaluations or using a provided weight. It returns a new scaled `mfd` object.

Usage

scale_mfd(mfd_obj, mfd_eval_length = 100, weight = NULL)

Arguments

mfd_obj

An object of class `mfd`.

mfd_eval_length

The number of evaluation points to use for scaling.

weight

An optional numeric value to use as the scaling factor. If NULL, the scaling factor is calculated automatically.

Value

A scaled mfd object.

Examples

# Example usage:
# Assuming `mfd_obj` is a valid mfd object:
# scaled_mfd <- scale_mfd(mfd_obj, mfd_eval_length = 100)
# scaled_mfd <- scale_mfd(mfd_obj, mfd_eval_length = 100, weight = 0.5)