Class SmallNumberRule

java.lang.Object
com.singularsys.extensions.rewrite.SmallNumberRule
All Implemented Interfaces:
RewriteVisitor.ConstantRuleI, JepComponent, Serializable

public class SmallNumberRule extends Object implements RewriteVisitor.ConstantRuleI
A rule where numbers very close to zero are replaces by zero.
Since:
Jep 4.0/Extensions 2.1
See Also:
  • Field Details

    • nf

      protected NodeFactory nf
      A NodeFactory used for construction nodes.
  • Constructor Details

    • SmallNumberRule

      public SmallNumberRule(double tolerance)
      Create the rule
      Parameters:
      tolerance - numbers smaller than this are considered zero
  • Method Details