The elementwise weighted sum of the positive and negative portions of an expression, αmax(xi,0)−βmin(xi,0). This is equivalent to alpha*pos(x) + beta*neg(x).
methods
scalene(x, alpha, beta)
Arguments
x: An Expression , vector, or matrix.
alpha: The weight on the positive portion of x.
beta: The weight on othe negative portion of x.
Returns
An Expression representing the scalene function evaluated at the input.