Visit ComfyUI Online for ready-to-use ComfyUI environment
Transforms floating-point numbers by inverting values around midpoint for data reversal and mirroring.
The Invert Floats node is designed to transform a list of floating-point numbers by inverting their values relative to the midpoint of their range. This node is particularly useful when you need to reverse the distribution of values within a dataset, effectively flipping the values around a central point. By calculating the midpoint of the minimum and maximum values in the input list, the node adjusts each float to its opposite position within the range. This operation can be beneficial in various scenarios, such as data normalization, visual effects, or any application where a mirrored value set is required. The node ensures precision by rounding the inverted values to six decimal places, maintaining consistency and accuracy in the output.
The floats
parameter is a required input that consists of a list of floating-point numbers. This parameter serves as the primary data set that the node will process to generate inverted values. The function of this parameter is to provide the numerical data that will be transformed by the node. The impact of this parameter on the node's execution is significant, as it directly determines the range and midpoint used for inversion. There are no explicit minimum, maximum, or default values specified for this parameter, but it is essential that the input is a valid list of floats to ensure proper functionality.
The inverted_floats
output parameter provides the list of floating-point numbers that have been inverted relative to their range midpoint. This output is crucial as it represents the transformed data set, where each original value has been flipped around the central point of the range. The interpretation of this output is straightforward: each number in the list is the mirrored counterpart of the corresponding input value, offering a new perspective on the data. This output can be used in various applications where such inversion is needed, providing a flexible tool for data manipulation.
RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Playground, enabling artists to harness the latest AI tools to create incredible art.