Visit ComfyUI Online for ready-to-use ComfyUI environment
Transform floating-point values between ranges with easing function for normalization and scaling automation.
The Batch Float Fit (mtb) node is designed to transform a list of floating-point values from one range to another, using a specified easing function to control the transformation. This node is particularly useful when you need to normalize or adjust a set of values to fit within a new range, ensuring consistency and precision in your data processing tasks. By leveraging this node, you can automate the process of scaling values, which is essential in various applications such as data normalization, graphical transformations, and more. The node's ability to automatically compute the source range based on the input values adds to its flexibility and ease of use.
This parameter takes a list of floating-point numbers that you want to transform. The values in this list will be scaled from the source range to the target range using the specified easing function. There are no minimum or maximum constraints on the values, but they should be relevant to the context in which you are working.
This boolean parameter determines whether the transformed values should be clamped to the target range. If set to True
, any values that fall outside the target range will be clamped to the nearest boundary value. This ensures that all output values remain within the specified target range. The default value is False
.
This boolean parameter, when set to True
, allows the node to automatically compute the source range based on the minimum and maximum values in the input list. This is useful when you do not have predefined source range values. The default value is False
.
This parameter specifies the minimum value of the source range. It is used when auto_compute_source
is set to False
. If auto_compute_source
is True
, this value is ignored. The default value is 0.0
.
This parameter specifies the maximum value of the source range. It is used when auto_compute_source
is set to False
. If auto_compute_source
is True
, this value is ignored. The default value is 1.0
.
This parameter defines the minimum value of the target range to which the input values will be scaled. The default value is 0.0
.
This parameter defines the maximum value of the target range to which the input values will be scaled. The default value is 1.0
.
This parameter specifies the easing function to be used for the transformation. Easing functions control the rate of change of the values, allowing for smooth transitions. Common easing functions include linear
, ease-in
, ease-out
, and ease-in-out
. The default value is linear
.
This output parameter returns a list of floating-point numbers that have been transformed from the source range to the target range using the specified easing function. Each value in the list corresponds to a transformed value from the input list, ensuring that the output is consistent with the input in terms of order and length.
clamp
parameter to True
.auto_compute_source
parameter to automatically determine the source range when you do not have predefined minimum and maximum values.{size}
) is less than target count ({count}
)None
.© Copyright 2024 RunComfy. All Rights Reserved.