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