VECTOR_MIN
Download Flojoy Studio to try this app
The VECTOR_MIN node returns the minimum value from the Vector Params: v : Vector The input vector to use min peration Returns: out : Scalar The minimum value found from the input vector
Python Code
import numpy as np
from flojoy import Scalar, Vector, flojoy
@flojoy
def VECTOR_MIN(default: Vector) -> Scalar:
"""The VECTOR_MIN node returns the minimum value from the Vector
Parameters
----------
v : Vector
The input vector to use min peration
Returns
-------
Scalar
The minimum value found from the input vector
"""
return Scalar(c=np.min(default.v))
Example App
Having problems with this example app? Join our Discord community and we will help you out!
In this example, we generate a vector starting from 8 and ending at 50 by using a LINSPACE
node. Then a VECTOR_MIN
node is connected to the example vector where it will find the minimum value and the one above will find the maximum value. The value is visualized with BIG_NUMBER
node.