m no usage |
Fixed types to "Pseudo-generic" in descriptions. |
||
(4 intermediate revisions by 2 users not shown) | |||
Line 13: | Line 13: | ||
|}} | |}} | ||
'''Avg''' returns the [https://en.wikipedia.org/wiki/Arithmetic_mean arithmetic mean] of two values. | The '''Avg''' node returns the [https://en.wikipedia.org/wiki/Arithmetic_mean arithmetic mean] of two values. | ||
== Inputs == | == Inputs == | ||
=== A ( | === A (Pseudo-generic) === | ||
A value. | A value. | ||
=== B ( | === B (Pseudo-generic) === | ||
A value. This value must match the type of <code>A</code>. | A value. This value must match the type of <code>A</code>. | ||
== Outputs == | == Outputs == | ||
=== * ( | === * (Pseudo-generic) === | ||
The arithmetic mean of the two inputs. | The arithmetic mean of the two inputs. | ||
=== Examples === | === Examples === | ||
<gallery widths=480px heights=400px> | <gallery widths=480px heights=400px> | ||
File:Protoflux example avg.webp|An example of using <code>Avg</code> for two colors, as well as [[Avg Multi | File:Protoflux example avg.webp|An example of using <code>Avg</code> for two colors, as well as [[ProtoFlux:Avg Multi|Avg Multi]] for four float values. | ||
</gallery> | </gallery> | ||
[[Category:ProtoFlux:Math]] | [[Category:ProtoFlux:Math]] |
Latest revision as of 10:55, 22 May 2024
Avg
Math
The Avg node returns the arithmetic mean of two values.
Inputs
A (Pseudo-generic)
A value.
B (Pseudo-generic)
A value. This value must match the type of A
.
Outputs
* (Pseudo-generic)
The arithmetic mean of the two inputs.
Examples
-
An example of using
Avg
for two colors, as well as Avg Multi for four float values.