Maximum

This function block is responsible for calculating the maximum value from a series of input numbers. It also returns the index of this maximum value.

📥 Inputs

The number of input values can be dynamically adjusted based on the selected input size. The inputs will be accepted in the form of generic sockets.

📤 Outputs

Generic The maximum value from the list of provided inputs.

Index The index of the maximum value within the input list.

🕹️ Controls

Input Size A dropdown menu that allows you to select how many inputs you want to work with. It ranges from 2 to 20.

🎨 Features

Dynamic Input Adjustment Automatically adjusts the number of input sockets based on the selected size in the dropdown.

Simple Maximum Calculation Uses NumPy's efficient methods to compute the maximum value and its index.

📝 Usage Instructions

  1. Select Input Size: Use the dropdown menu to select how many numbers (from 2 to 20) you want to input.

  2. Connect Inputs: Connect your input values to the available sockets that appear based on the number you selected.

  3. Evaluate: Run the block to calculate the maximum value from the connected inputs and receive the output.

📊 Evaluation

When evaluated, this function block will return the maximum value from all input connections and indicate its position within the input list.

💡 Tips and Tricks

Handling Non-Numeric Inputs

Ensure that all connected inputs are numeric to avoid errors during maximum value calculation.

Debugging Outputs

Use the Debug Input function block to check your connected inputs dynamically. It can simplify finding issues before they reach the Maximum block.

🛠️ Troubleshooting

No Outputs Received

Verify that all inputs are connected and properly providing numeric values. If any input is missing, the operation may not yield the desired results.

Incorrect Maximum Value

Check that all connected inputs are valid and numeric. Mixed data types can lead to unexpected outputs or errors.

Last updated