All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class rsf.operator.ElwInv

java.lang.Object
   |
   +----rsf.operator.ElwInv

public class ElwInv
extends Object
implements Operator


Pointwise inverse: Takes an Rsf and computes
1/x[i]
.
 If 
x[1]
 is close to zero, I replace it by 
eps
.


Constructor Index

 o ElwInv(RsfSpace)
eps = java.lang.Float.MIN_VALUE
 o ElwInv(RsfSpace, Float)
 o ElwInv(RsfSpace, float)
Any element
e
 with 
Abs(e) < eps
 
 is replaced by 
eps
 or 
-eps
 
 as appropiate.

Method Index

 o addImage(Vector, Vector)
 o copy()
 o elwInv(Vector)
 o elwInv(Vector, float)
 o elwInv(Vector, float, float)
In general this should not be invoked.
 o elwInvDivByZeroIsZero(Vector)
 o getDomain()
 o getRange()
 o image(Vector)
 o image(Vector, Vector)
 o main(String[])
 o residual(Vector, Vector, Vector)

Constructors

 o ElwInv
 public ElwInv(RsfSpace spc,
               float eps)
Any element
e
 with 
Abs(e) < eps
 
 is replaced by 
eps
 or 
-eps
 
 as appropiate. This prevents a division by zero.  
 A practical eps value might be 1.0e-12f.
 No catching of NaN or INFINITE numbers yet

 o ElwInv
 public ElwInv(RsfSpace spc,
               Float eps)
 o ElwInv
 public ElwInv(RsfSpace spc)
eps = java.lang.Float.MIN_VALUE

Methods

 o copy
 public JamObject copy()
 o image
 public Vector image(Vector d)
 o image
 public void image(Vector d,
                   Vector r)
 o addImage
 public void addImage(Vector d,
                      Vector r)
 o residual
 public void residual(Vector d,
                      Vector b,
                      Vector r)
 o getDomain
 public Space getDomain()
 o getRange
 public Space getRange()
 o main
 public static void main(String args[])
 o elwInv
 public static void elwInv(Vector data)
 o elwInvDivByZeroIsZero
 public static void elwInvDivByZeroIsZero(Vector data)
 o elwInv
 public static void elwInv(Vector data,
                           float eps)
 o elwInv
 public static void elwInv(Vector data,
                           float eps,
                           float upper)
In general this should not be invoked. Maybe I should make it private. A user may set eps and upper to nonsensical values.

Parameters:
: - eps: absolute value of the lower limit of floats inverted correctly.
upper: - absolute value assigned to the inverse off input values that are equal or smaller than eps.

All Packages  Class Hierarchy  This Package  Previous  Next  Index