MIX

From STX Wiki
< Programmer Guide‎ | SPU Reference
Revision as of 14:05, 17 May 2010 by 193.171.195.8 (talk) (initial import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

MIX

Usage:

MIX A KA B KB

Inputs:
A input number or vector
KA weighting factor for A (number)
B same type as A
KB weighting factor for B (number)
Outputs:
Y number or vector (same type as A)
Function:

Compute the weight sum of inputs A and B.

if A and B are numbers: Y = A.KA + B.KB

if A and B are vectors: Y[i] = A[i].KA + B[i].KB

Navigation menu

Personal tools