| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> |
| <!-- NewPage --> |
| <html lang="en"> |
| <head> |
| <!-- Generated by javadoc (1.8.0_121) on Fri Apr 14 22:10:59 PDT 2017 --> |
| <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
| <title>Functions (Mahout Math 0.13.0 API)</title> |
| <meta name="date" content="2017-04-14"> |
| <link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style"> |
| <script type="text/javascript" src="../../../../../script.js"></script> |
| </head> |
| <body> |
| <script type="text/javascript"><!-- |
| try { |
| if (location.href.indexOf('is-external=true') == -1) { |
| parent.document.title="Functions (Mahout Math 0.13.0 API)"; |
| } |
| } |
| catch(err) { |
| } |
| //--> |
| var methods = {"i0":9,"i1":9,"i2":9,"i3":9,"i4":9,"i5":9,"i6":9,"i7":9,"i8":9,"i9":9,"i10":9,"i11":9,"i12":9,"i13":9,"i14":9,"i15":9,"i16":9,"i17":9,"i18":9,"i19":9,"i20":9,"i21":9,"i22":9,"i23":9,"i24":9,"i25":9,"i26":9,"i27":9,"i28":9,"i29":9,"i30":9,"i31":9,"i32":9,"i33":9}; |
| var tabs = {65535:["t0","All Methods"],1:["t1","Static Methods"],8:["t4","Concrete Methods"]}; |
| var altColor = "altColor"; |
| var rowColor = "rowColor"; |
| var tableTab = "tableTab"; |
| var activeTableTab = "activeTableTab"; |
| </script> |
| <noscript> |
| <div>JavaScript is disabled on your browser.</div> |
| </noscript> |
| <!-- ========= START OF TOP NAVBAR ======= --> |
| <div class="topNav"><a name="navbar.top"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.top" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.top.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Functions.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/mahout/math/function/FloatShortProcedure.html" title="interface in org.apache.mahout.math.function"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mahout/math/function/IntByteProcedure.html" title="interface in org.apache.mahout.math.function"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mahout/math/function/Functions.html" target="_top">Frames</a></li> |
| <li><a href="Functions.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_top"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_top"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.top"> |
| <!-- --> |
| </a></div> |
| <!-- ========= END OF TOP NAVBAR ========= --> |
| <!-- ======== START OF CLASS DATA ======== --> |
| <div class="header"> |
| <div class="subTitle">org.apache.mahout.math.function</div> |
| <h2 title="Class Functions" class="title">Class Functions</h2> |
| </div> |
| <div class="contentContainer"> |
| <ul class="inheritance"> |
| <li><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</a></li> |
| <li> |
| <ul class="inheritance"> |
| <li>org.apache.mahout.math.function.Functions</li> |
| </ul> |
| </li> |
| </ul> |
| <div class="description"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <hr> |
| <br> |
| <pre>public final class <span class="typeNameLabel">Functions</span> |
| extends <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></pre> |
| <div class="block">Function objects to be passed to generic methods. Contains the functions of <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html?is-external=true" title="class or interface in java.lang"><code>Math</code></a> as function |
| objects, as well as a few more basic functions. <p>Function objects conveniently allow to express arbitrary functions |
| in a generic manner. Essentially, a function object is an object that can perform a function on some arguments. It |
| has a minimal interface: a method <tt>apply</tt> that takes the arguments, computes something and returns some result |
| value. Function objects are comparable to function pointers in C used for call-backs. <p>Unary functions are of type |
| <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function"><code>DoubleFunction</code></a>, binary functions of type <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function"><code>DoubleDoubleFunction</code></a>. All can be retrieved via <tt>public static final</tt> |
| variables named after the function. Unary predicates are of type |
| <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function"><code>DoubleProcedure</code></a>, |
| binary predicates of type <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleProcedure.html" title="interface in org.apache.mahout.math.function"><code>DoubleDoubleProcedure</code></a>. All can be retrieved via |
| <tt>public static final</tt> variables named <tt>isXXX</tt>. |
| |
| <p> Binary functions and predicates also exist as unary functions with the second argument being fixed to a constant. |
| These are generated and retrieved via factory methods (again with the same name as the function). Example: <ul> |
| <li><tt>Functions.pow</tt> gives the function <tt>a<sup>b</sup></tt>. <li><tt>Functions.pow.apply(2,3)==8</tt>. |
| <li><tt>Functions.pow(3)</tt> gives the function <tt>a<sup>3</sup></tt>. <li><tt>Functions.pow(3).apply(2)==8</tt>. |
| </ul> More general, any binary function can be made an unary functions by fixing either the first or the second |
| argument. See methods <a href="../../../../../org/apache/mahout/math/function/Functions.html#bindArg1-org.apache.mahout.math.function.DoubleDoubleFunction-double-"><code>bindArg1(org.apache.mahout.math.function.DoubleDoubleFunction ,double)</code></a> and <a href="../../../../../org/apache/mahout/math/function/Functions.html#bindArg2-org.apache.mahout.math.function.DoubleDoubleFunction-double-"><code>bindArg2(org.apache.mahout.math.function.DoubleDoubleFunction ,double)</code></a>. The order of arguments can |
| be swapped so that the first argument becomes the |
| second and vice-versa. See method <a href="../../../../../org/apache/mahout/math/function/Functions.html#swapArgs-org.apache.mahout.math.function.DoubleDoubleFunction-"><code>swapArgs(org.apache.mahout.math.function.DoubleDoubleFunction)</code></a>. |
| Example: <ul> <li><tt>Functions.pow</tt> |
| gives the function <tt>a<sup>b</sup></tt>. <li><tt>Functions.bindArg2(Functions.pow,3)</tt> gives the function |
| <tt>x<sup>3</sup></tt>. <li><tt>Functions.bindArg1(Functions.pow,3)</tt> gives the function <tt>3<sup>x</sup></tt>. |
| <li><tt>Functions.swapArgs(Functions.pow)</tt> gives the function <tt>b<sup>a</sup></tt>. </ul> <p> Even more |
| general, functions can be chained (composed, assembled). Assume we have two unary functions <tt>g</tt> and |
| <tt>h</tt>. The unary function <tt>g(h(a))</tt> applying both in sequence can be generated via <a href="../../../../../org/apache/mahout/math/function/Functions.html#chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleFunction-"><code>chain(org.apache.mahout.math.function.DoubleFunction , org.apache.mahout.math.function.DoubleFunction)</code></a>: |
| <ul> <li><tt>Functions.chain(g,h);</tt> </ul> Assume further we have a binary |
| function <tt>f</tt>. The binary function <tt>g(f(a,b))</tt> can be generated via <a href="../../../../../org/apache/mahout/math/function/Functions.html#chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleDoubleFunction-"><code>chain(org.apache.mahout.math.function.DoubleFunction , org.apache.mahout.math.function.DoubleDoubleFunction)</code></a>: |
| <ul> <li><tt>Functions.chain(g,f);</tt> </ul> The binary function |
| <tt>f(g(a),h(b))</tt> can be generated via |
| <a href="../../../../../org/apache/mahout/math/function/Functions.html#chain-org.apache.mahout.math.function.DoubleDoubleFunction-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleFunction-"><code>chain(org.apache.mahout.math.function.DoubleDoubleFunction , org.apache.mahout.math.function.DoubleFunction , |
| org.apache.mahout.math.function.DoubleFunction)</code></a>: <ul> |
| <li><tt>Functions.chain(f,g,h);</tt> </ul> Arbitrarily complex functions can be composed from these building blocks. |
| For example <tt>sin(a) + cos<sup>2</sup>(b)</tt> can be specified as follows: <ul> |
| <li><tt>chain(plus,sin,chain(square,cos));</tt> </ul> or, of course, as |
| <pre> |
| new DoubleDoubleFunction() { |
| public final double apply(double a, double b) { return Math.sin(a) + Math.pow(Math.cos(b),2); } |
| } |
| </pre> |
| <p> For aliasing see functions. Try this <table> <tr><td class="PRE"> |
| <pre> |
| // should yield 1.4399560356056456 in all cases |
| double a = 0.5; |
| double b = 0.2; |
| double v = Math.sin(a) + Math.pow(Math.cos(b),2); |
| log.info(v); |
| Functions F = Functions.functions; |
| DoubleDoubleFunction f = F.chain(F.plus,F.sin,F.chain(F.square,F.cos)); |
| log.info(f.apply(a,b)); |
| DoubleDoubleFunction g = new DoubleDoubleFunction() { |
| public double apply(double a, double b) { return Math.sin(a) + Math.pow(Math.cos(b),2); } |
| }; |
| log.info(g.apply(a,b)); |
| </pre> |
| </td></tr></table> |
| |
| <p> <H3>Performance</H3> |
| |
| Surprise. Using modern non-adaptive JITs such as SunJDK 1.2.2 (java -classic) there seems to be no or only moderate |
| performance penalty in using function objects in a loop over traditional code in a loop. For complex nested function |
| objects (e.g. <tt>F.chain(F.abs,F.chain(F.plus,F.sin,F.chain(F.square,F.cos)))</tt>) the penalty is zero, for trivial |
| functions (e.g. <tt>F.plus</tt>) the penalty is often acceptable. <center> <table border cellpadding="3" |
| cellspacing="0" align="center"> |
| <tr valign="middle" bgcolor="#33CC66" align="center"> <td nowrap colspan="7"> |
| <font size="+2">Iteration Performance [million function evaluations per second]</font><br> <font size="-1">Pentium |
| Pro 200 Mhz, SunJDK 1.2.2, NT, java -classic, </font></td> </tr> |
| <tr valign="middle" bgcolor="#66CCFF" align="center"> <td nowrap bgcolor="#FF9966" rowspan="2"> </td> <td bgcolor="#FF9966" colspan="2"> <p> 30000000 |
| iterations</p> </td> <td bgcolor="#FF9966" colspan="2"> 3000000 iterations (10 times less)</td> <td bgcolor="#FF9966" |
| colspan="2"> </td> </tr> |
| <tr valign="middle" bgcolor="#66CCFF" align="center"> <td nowrap bgcolor="#FF9966"> |
| <tt>F.plus</tt></td> <td bgcolor="#FF9966"><tt>a+b</tt></td> <td bgcolor="#FF9966"> |
| <tt>F.chain(F.abs,F.chain(F.plus,F.sin,F.chain(F.square,F.cos)))</tt></td> <td bgcolor="#FF9966"> |
| <tt>Math.abs(Math.sin(a) + Math.pow(Math.cos(b),2))</tt></td> <td bgcolor="#FF9966"> </td> <td |
| bgcolor="#FF9966"> </td> </tr> |
| <tr valign="middle" bgcolor="#66CCFF" align="center"> <td nowrap |
| bgcolor="#FF9966"> </td> <td nowrap>10.8</td> <td nowrap>29.6</td> <td nowrap>0.43</td> <td nowrap>0.35</td> <td |
| nowrap> </td> <td nowrap> </td> </tr> |
| </table></center></div> |
| </li> |
| </ul> |
| </div> |
| <div class="summary"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- =========== FIELD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.summary"> |
| <!-- --> |
| </a> |
| <h3>Field Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation"> |
| <caption><span>Fields</span><span class="tabEnd"> </span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Field and Description</th> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#ABS">ABS</a></span></code> |
| <div class="block">Function that returns <tt>Math.abs(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#ACOS">ACOS</a></span></code> |
| <div class="block">Function that returns <tt>Math.acos(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#ASIN">ASIN</a></span></code> |
| <div class="block">Function that returns <tt>Math.asin(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#ATAN">ATAN</a></span></code> |
| <div class="block">Function that returns <tt>Math.atan(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#ATAN2">ATAN2</a></span></code> |
| <div class="block">Function that returns <tt>Math.atan2(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#CEIL">CEIL</a></span></code> |
| <div class="block">Function that returns <tt>Math.ceil(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#COMPARE">COMPARE</a></span></code> |
| <div class="block">Function that returns <tt>a < b ? -1 : a > b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#COS">COS</a></span></code> |
| <div class="block">Function that returns <tt>Math.cos(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#DIV">DIV</a></span></code> |
| <div class="block">Function that returns <tt>a / b</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#EQUALS">EQUALS</a></span></code> |
| <div class="block">Function that returns <tt>a == b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#EXP">EXP</a></span></code> |
| <div class="block">Function that returns <tt>Math.exp(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#FLOOR">FLOOR</a></span></code> |
| <div class="block">Function that returns <tt>Math.floor(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#GREATER">GREATER</a></span></code> |
| <div class="block">Function that returns <tt>a > b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#IDENTITY">IDENTITY</a></span></code> |
| <div class="block">Function that returns its argument.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#IEEE_REMAINDER">IEEE_REMAINDER</a></span></code> |
| <div class="block">Function that returns <tt>Math.IEEEremainder(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#INV">INV</a></span></code> |
| <div class="block">Function that returns <tt>1.0 / a</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleDoubleProcedure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#IS_EQUAL">IS_EQUAL</a></span></code> |
| <div class="block">Function that returns <tt>a == b</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleDoubleProcedure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#IS_GREATER">IS_GREATER</a></span></code> |
| <div class="block">Function that returns <code>a > b</code>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleDoubleProcedure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#IS_LESS">IS_LESS</a></span></code> |
| <div class="block">Function that returns <code>a < b</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#LESS">LESS</a></span></code> |
| <div class="block">Function that returns <tt>a < b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#LG">LG</a></span></code> |
| <div class="block">Function that returns <tt>Math.log(a) / Math.log(b)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#LOG2">LOG2</a></span></code> |
| <div class="block">Function that returns <tt>Math.log(a) / Math.log(2)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#LOGARITHM">LOGARITHM</a></span></code> |
| <div class="block">Function that returns <tt>Math.log(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MAX">MAX</a></span></code> |
| <div class="block">Function that returns <tt>Math.max(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MAX_ABS">MAX_ABS</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MIN">MIN</a></span></code> |
| <div class="block">Function that returns <tt>Math.min(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MINUS">MINUS</a></span></code> |
| <div class="block">Function that returns <tt>a - b</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MINUS_ABS">MINUS_ABS</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MINUS_SQUARED">MINUS_SQUARED</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MOD">MOD</a></span></code> |
| <div class="block">Function that returns <tt>a % b</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MULT">MULT</a></span></code> |
| <div class="block">Function that returns <tt>a * b</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MULT_RIGHT_PLUS1">MULT_RIGHT_PLUS1</a></span></code> </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#MULT_SQUARE_LEFT">MULT_SQUARE_LEFT</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#NEGATE">NEGATE</a></span></code> |
| <div class="block">Function that returns <tt>-a</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#PLUS">PLUS</a></span></code> |
| <div class="block">Function that returns <tt>a + b</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#PLUS_ABS">PLUS_ABS</a></span></code> |
| <div class="block">Function that returns <tt>Math.abs(a) + Math.abs(b)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#POW">POW</a></span></code> |
| <div class="block">Function that returns <tt>Math.pow(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#RINT">RINT</a></span></code> |
| <div class="block">Function that returns <tt>Math.rint(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SECOND">SECOND</a></span></code> </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SECOND_LEFT_ZERO">SECOND_LEFT_ZERO</a></span></code> |
| <div class="block">This function is specifically designed to be used when assigning a vector to one that is all zeros (created |
| by like()).</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SIGMOID">SIGMOID</a></span></code> |
| <div class="block">Function that returns <tt> 1 / (1 + exp(-a) </tt></div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SIGMOIDGRADIENT">SIGMOIDGRADIENT</a></span></code> |
| <div class="block">Function that returns <tt> a * (1-a) </tt></div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SIGN">SIGN</a></span></code> |
| <div class="block">Function that returns <code>a < 0 ? -1 : a > 0 ? 1 : 0</code>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SIN">SIN</a></span></code> |
| <div class="block">Function that returns <tt>Math.sin(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SQRT">SQRT</a></span></code> |
| <div class="block">Function that returns <tt>Math.sqrt(a)</tt>.</div> |
| </td> |
| </tr> |
| <tr class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#SQUARE">SQUARE</a></span></code> |
| <div class="block">Function that returns <tt>a * a</tt>.</div> |
| </td> |
| </tr> |
| <tr class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#TAN">TAN</a></span></code> |
| <div class="block">Function that returns <tt>Math.tan(a)</tt>.</div> |
| </td> |
| </tr> |
| </table> |
| </li> |
| </ul> |
| <!-- ========== METHOD SUMMARY =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.summary"> |
| <!-- --> |
| </a> |
| <h3>Method Summary</h3> |
| <table class="memberSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation"> |
| <caption><span id="t0" class="activeTableTab"><span>All Methods</span><span class="tabEnd"> </span></span><span id="t1" class="tableTab"><span><a href="javascript:show(1);">Static Methods</a></span><span class="tabEnd"> </span></span><span id="t4" class="tableTab"><span><a href="javascript:show(8);">Concrete Methods</a></span><span class="tabEnd"> </span></span></caption> |
| <tr> |
| <th class="colFirst" scope="col">Modifier and Type</th> |
| <th class="colLast" scope="col">Method and Description</th> |
| </tr> |
| <tr id="i0" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#between-double-double-">between</a></span>(double from, |
| double to)</code> |
| <div class="block">Constructs a function that returns <code>(from<=a && a<=to) ? 1 : 0</code>.</div> |
| </td> |
| </tr> |
| <tr id="i1" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#bindArg1-org.apache.mahout.math.function.DoubleDoubleFunction-double-">bindArg1</a></span>(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> function, |
| double c)</code> |
| <div class="block">Constructs a unary function from a binary function with the first operand (argument) fixed to the given constant |
| <tt>c</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i2" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#bindArg2-org.apache.mahout.math.function.DoubleDoubleFunction-double-">bindArg2</a></span>(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> function, |
| double c)</code> |
| <div class="block">Constructs a unary function from a binary function with the second operand (argument) fixed to the given constant |
| <tt>c</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i3" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#chain-org.apache.mahout.math.function.DoubleDoubleFunction-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleFunction-">chain</a></span>(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> f, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> h)</code> |
| <div class="block">Constructs the function <tt>f( g(a), h(b) )</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i4" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleDoubleFunction-">chain</a></span>(<a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> h)</code> |
| <div class="block">Constructs the function <tt>g( h(a,b) )</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i5" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleFunction-">chain</a></span>(<a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> h)</code> |
| <div class="block">Constructs the function <tt>g( h(a) )</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i6" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/IntIntFunction.html" title="interface in org.apache.mahout.math.function">IntIntFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.IntIntFunction-">chain</a></span>(<a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/IntIntFunction.html" title="interface in org.apache.mahout.math.function">IntIntFunction</a> h)</code> |
| <div class="block">Constructs the function <tt>g( h(a) )</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i7" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#compare-double-">compare</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <code>a < b ? -1 : a > b ? 1 : 0</code>.</div> |
| </td> |
| </tr> |
| <tr id="i8" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#constant-double-">constant</a></span>(double c)</code> |
| <div class="block">Constructs a function that returns the constant <tt>c</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i9" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#div-double-">div</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a / b</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i10" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#equals-double-">equals</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a == b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i11" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#greater-double-">greater</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a > b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i12" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#isBetween-double-double-">isBetween</a></span>(double from, |
| double to)</code> |
| <div class="block">Constructs a function that returns <code>from<=a && a<=to</code>.</div> |
| </td> |
| </tr> |
| <tr id="i13" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#isEqual-double-">isEqual</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a == b</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i14" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#isGreater-double-">isGreater</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a > b</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i15" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#isLess-double-">isLess</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <code>a < b</code>.</div> |
| </td> |
| </tr> |
| <tr id="i16" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#less-double-">less</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a < b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i17" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#lg-double-">lg</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>Math.log(a) / Math.log(b)</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i18" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#mathIEEEremainder-double-">mathIEEEremainder</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>Math.IEEEremainder(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i19" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#max-double-">max</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>Math.max(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i20" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#min-double-">min</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>Math.min(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i21" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#minus-double-">minus</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a - b</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i22" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#minusAbsPow-double-">minusAbsPow</a></span>(double exponent)</code> </td> |
| </tr> |
| <tr id="i23" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#minusMult-double-">minusMult</a></span>(double constant)</code> |
| <div class="block">Constructs a function that returns <tt>a - b*constant</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i24" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#mod-double-">mod</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a % b</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i25" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#mult-double-">mult</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a * b</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i26" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#notEqual-double-">notEqual</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a != b ? 1 : 0</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i27" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#plus-double-">plus</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>a + b</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i28" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#plusMult-double-">plusMult</a></span>(double constant)</code> |
| <div class="block">Constructs a function that returns <tt>a + b*constant</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i29" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#pow-double-">pow</a></span>(double b)</code> |
| <div class="block">Constructs a function that returns <tt>Math.pow(a,b)</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i30" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#random--">random</a></span>()</code> |
| <div class="block">Constructs a function that returns a new uniform random number in the open unit interval <code>(0.0,1.0)</code> |
| (excluding 0.0 and 1.0).</div> |
| </td> |
| </tr> |
| <tr id="i31" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#reweigh-double-double-">reweigh</a></span>(double wx, |
| double wy)</code> </td> |
| </tr> |
| <tr id="i32" class="altColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#round-double-">round</a></span>(double precision)</code> |
| <div class="block">Constructs a function that returns the number rounded to the given precision; |
| <tt>Math.rint(a/precision)*precision</tt>.</div> |
| </td> |
| </tr> |
| <tr id="i33" class="rowColor"> |
| <td class="colFirst"><code>static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a></code></td> |
| <td class="colLast"><code><span class="memberNameLink"><a href="../../../../../org/apache/mahout/math/function/Functions.html#swapArgs-org.apache.mahout.math.function.DoubleDoubleFunction-">swapArgs</a></span>(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> function)</code> |
| <div class="block">Constructs a function that returns <tt>function.apply(b,a)</tt>, i.e.</div> |
| </td> |
| </tr> |
| </table> |
| <ul class="blockList"> |
| <li class="blockList"><a name="methods.inherited.from.class.java.lang.Object"> |
| <!-- --> |
| </a> |
| <h3>Methods inherited from class java.lang.<a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</a></h3> |
| <code><a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#clone--" title="class or interface in java.lang">clone</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#equals-java.lang.Object-" title="class or interface in java.lang">equals</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#finalize--" title="class or interface in java.lang">finalize</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#getClass--" title="class or interface in java.lang">getClass</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#hashCode--" title="class or interface in java.lang">hashCode</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notify--" title="class or interface in java.lang">notify</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#notifyAll--" title="class or interface in java.lang">notifyAll</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#toString--" title="class or interface in java.lang">toString</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait--" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-" title="class or interface in java.lang">wait</a>, <a href="http://docs.oracle.com/javase/7/docs/api/java/lang/Object.html?is-external=true#wait-long-int-" title="class or interface in java.lang">wait</a></code></li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| <div class="details"> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <!-- ============ FIELD DETAIL =========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="field.detail"> |
| <!-- --> |
| </a> |
| <h3>Field Detail</h3> |
| <a name="ABS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ABS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> ABS</pre> |
| <div class="block">Function that returns <tt>Math.abs(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="ACOS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ACOS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> ACOS</pre> |
| <div class="block">Function that returns <tt>Math.acos(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="ASIN"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ASIN</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> ASIN</pre> |
| <div class="block">Function that returns <tt>Math.asin(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="ATAN"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ATAN</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> ATAN</pre> |
| <div class="block">Function that returns <tt>Math.atan(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="CEIL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>CEIL</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> CEIL</pre> |
| <div class="block">Function that returns <tt>Math.ceil(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="COS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>COS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> COS</pre> |
| <div class="block">Function that returns <tt>Math.cos(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="EXP"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EXP</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> EXP</pre> |
| <div class="block">Function that returns <tt>Math.exp(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="FLOOR"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>FLOOR</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> FLOOR</pre> |
| <div class="block">Function that returns <tt>Math.floor(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="IDENTITY"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>IDENTITY</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> IDENTITY</pre> |
| <div class="block">Function that returns its argument.</div> |
| </li> |
| </ul> |
| <a name="INV"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>INV</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> INV</pre> |
| <div class="block">Function that returns <tt>1.0 / a</tt>.</div> |
| </li> |
| </ul> |
| <a name="LOGARITHM"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>LOGARITHM</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> LOGARITHM</pre> |
| <div class="block">Function that returns <tt>Math.log(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="LOG2"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>LOG2</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> LOG2</pre> |
| <div class="block">Function that returns <tt>Math.log(a) / Math.log(2)</tt>.</div> |
| </li> |
| </ul> |
| <a name="NEGATE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>NEGATE</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> NEGATE</pre> |
| <div class="block">Function that returns <tt>-a</tt>.</div> |
| </li> |
| </ul> |
| <a name="RINT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>RINT</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> RINT</pre> |
| <div class="block">Function that returns <tt>Math.rint(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="SIGN"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SIGN</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> SIGN</pre> |
| <div class="block">Function that returns <code>a < 0 ? -1 : a > 0 ? 1 : 0</code>.</div> |
| </li> |
| </ul> |
| <a name="SIN"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SIN</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> SIN</pre> |
| <div class="block">Function that returns <tt>Math.sin(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="SQRT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SQRT</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> SQRT</pre> |
| <div class="block">Function that returns <tt>Math.sqrt(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="SQUARE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SQUARE</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> SQUARE</pre> |
| <div class="block">Function that returns <tt>a * a</tt>.</div> |
| </li> |
| </ul> |
| <a name="SIGMOID"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SIGMOID</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> SIGMOID</pre> |
| <div class="block">Function that returns <tt> 1 / (1 + exp(-a) </tt></div> |
| </li> |
| </ul> |
| <a name="SIGMOIDGRADIENT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SIGMOIDGRADIENT</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> SIGMOIDGRADIENT</pre> |
| <div class="block">Function that returns <tt> a * (1-a) </tt></div> |
| </li> |
| </ul> |
| <a name="TAN"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>TAN</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> TAN</pre> |
| <div class="block">Function that returns <tt>Math.tan(a)</tt>.</div> |
| </li> |
| </ul> |
| <a name="ATAN2"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>ATAN2</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> ATAN2</pre> |
| <div class="block">Function that returns <tt>Math.atan2(a,b)</tt>.</div> |
| </li> |
| </ul> |
| <a name="COMPARE"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>COMPARE</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> COMPARE</pre> |
| <div class="block">Function that returns <tt>a < b ? -1 : a > b ? 1 : 0</tt>.</div> |
| </li> |
| </ul> |
| <a name="DIV"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>DIV</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> DIV</pre> |
| <div class="block">Function that returns <tt>a / b</tt>.</div> |
| </li> |
| </ul> |
| <a name="EQUALS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>EQUALS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> EQUALS</pre> |
| <div class="block">Function that returns <tt>a == b ? 1 : 0</tt>.</div> |
| </li> |
| </ul> |
| <a name="GREATER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>GREATER</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> GREATER</pre> |
| <div class="block">Function that returns <tt>a > b ? 1 : 0</tt>.</div> |
| </li> |
| </ul> |
| <a name="IEEE_REMAINDER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>IEEE_REMAINDER</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> IEEE_REMAINDER</pre> |
| <div class="block">Function that returns <tt>Math.IEEEremainder(a,b)</tt>.</div> |
| </li> |
| </ul> |
| <a name="IS_EQUAL"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>IS_EQUAL</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleDoubleProcedure</a> IS_EQUAL</pre> |
| <div class="block">Function that returns <tt>a == b</tt>.</div> |
| </li> |
| </ul> |
| <a name="IS_LESS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>IS_LESS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleDoubleProcedure</a> IS_LESS</pre> |
| <div class="block">Function that returns <code>a < b</code>.</div> |
| </li> |
| </ul> |
| <a name="IS_GREATER"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>IS_GREATER</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleDoubleProcedure</a> IS_GREATER</pre> |
| <div class="block">Function that returns <code>a > b</code>.</div> |
| </li> |
| </ul> |
| <a name="LESS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>LESS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> LESS</pre> |
| <div class="block">Function that returns <tt>a < b ? 1 : 0</tt>.</div> |
| </li> |
| </ul> |
| <a name="LG"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>LG</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> LG</pre> |
| <div class="block">Function that returns <tt>Math.log(a) / Math.log(b)</tt>.</div> |
| </li> |
| </ul> |
| <a name="MAX"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MAX</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MAX</pre> |
| <div class="block">Function that returns <tt>Math.max(a,b)</tt>.</div> |
| </li> |
| </ul> |
| <a name="MAX_ABS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MAX_ABS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MAX_ABS</pre> |
| </li> |
| </ul> |
| <a name="MIN"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MIN</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MIN</pre> |
| <div class="block">Function that returns <tt>Math.min(a,b)</tt>.</div> |
| </li> |
| </ul> |
| <a name="MINUS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MINUS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MINUS</pre> |
| <div class="block">Function that returns <tt>a - b</tt>.</div> |
| </li> |
| </ul> |
| <a name="MINUS_SQUARED"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MINUS_SQUARED</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MINUS_SQUARED</pre> |
| </li> |
| </ul> |
| <a name="MOD"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MOD</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MOD</pre> |
| <div class="block">Function that returns <tt>a % b</tt>.</div> |
| </li> |
| </ul> |
| <a name="MULT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MULT</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MULT</pre> |
| <div class="block">Function that returns <tt>a * b</tt>.</div> |
| </li> |
| </ul> |
| <a name="PLUS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>PLUS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> PLUS</pre> |
| <div class="block">Function that returns <tt>a + b</tt>.</div> |
| </li> |
| </ul> |
| <a name="PLUS_ABS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>PLUS_ABS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> PLUS_ABS</pre> |
| <div class="block">Function that returns <tt>Math.abs(a) + Math.abs(b)</tt>.</div> |
| </li> |
| </ul> |
| <a name="MINUS_ABS"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MINUS_ABS</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MINUS_ABS</pre> |
| </li> |
| </ul> |
| <a name="POW"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>POW</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> POW</pre> |
| <div class="block">Function that returns <tt>Math.pow(a,b)</tt>.</div> |
| </li> |
| </ul> |
| <a name="SECOND"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SECOND</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> SECOND</pre> |
| </li> |
| </ul> |
| <a name="SECOND_LEFT_ZERO"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>SECOND_LEFT_ZERO</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> SECOND_LEFT_ZERO</pre> |
| <div class="block">This function is specifically designed to be used when assigning a vector to one that is all zeros (created |
| by like()). It enables iteration only through the nonzeros of the right hand side by declaring isLikeRightPlus |
| to be true. This is NOT generally true for SECOND (hence the other function above).</div> |
| </li> |
| </ul> |
| <a name="MULT_SQUARE_LEFT"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>MULT_SQUARE_LEFT</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MULT_SQUARE_LEFT</pre> |
| </li> |
| </ul> |
| <a name="MULT_RIGHT_PLUS1"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>MULT_RIGHT_PLUS1</h4> |
| <pre>public static final <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> MULT_RIGHT_PLUS1</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| <!-- ============ METHOD DETAIL ========== --> |
| <ul class="blockList"> |
| <li class="blockList"><a name="method.detail"> |
| <!-- --> |
| </a> |
| <h3>Method Detail</h3> |
| <a name="reweigh-double-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>reweigh</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> reweigh(double wx, |
| double wy)</pre> |
| </li> |
| </ul> |
| <a name="between-double-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>between</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> between(double from, |
| double to)</pre> |
| <div class="block">Constructs a function that returns <code>(from<=a && a<=to) ? 1 : 0</code>. |
| <tt>a</tt> is a variable, <tt>from</tt> and <tt>to</tt> are fixed.</div> |
| </li> |
| </ul> |
| <a name="bindArg1-org.apache.mahout.math.function.DoubleDoubleFunction-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>bindArg1</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> bindArg1(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> function, |
| double c)</pre> |
| <div class="block">Constructs a unary function from a binary function with the first operand (argument) fixed to the given constant |
| <tt>c</tt>. The second operand is variable (free).</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>function</code> - a binary function taking operands in the form <tt>function.apply(c,var)</tt>.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the unary function <tt>function(c,var)</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="bindArg2-org.apache.mahout.math.function.DoubleDoubleFunction-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>bindArg2</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> bindArg2(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> function, |
| double c)</pre> |
| <div class="block">Constructs a unary function from a binary function with the second operand (argument) fixed to the given constant |
| <tt>c</tt>. The first operand is variable (free).</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>function</code> - a binary function taking operands in the form <tt>function.apply(var,c)</tt>.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the unary function <tt>function(var,c)</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="chain-org.apache.mahout.math.function.DoubleDoubleFunction-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>chain</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> chain(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> f, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> h)</pre> |
| <div class="block">Constructs the function <tt>f( g(a), h(b) )</tt>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>f</code> - a binary function.</dd> |
| <dd><code>g</code> - a unary function.</dd> |
| <dd><code>h</code> - a unary function.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the binary function <tt>f( g(a), h(b) )</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleDoubleFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>chain</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> chain(<a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> h)</pre> |
| <div class="block">Constructs the function <tt>g( h(a,b) )</tt>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>g</code> - a unary function.</dd> |
| <dd><code>h</code> - a binary function.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the binary function <tt>g( h(a,b) )</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.DoubleFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>chain</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> chain(<a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> h)</pre> |
| <div class="block">Constructs the function <tt>g( h(a) )</tt>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>g</code> - a unary function.</dd> |
| <dd><code>h</code> - a unary function.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the unary function <tt>g( h(a) )</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="chain-org.apache.mahout.math.function.DoubleFunction-org.apache.mahout.math.function.IntIntFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>chain</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/IntIntFunction.html" title="interface in org.apache.mahout.math.function">IntIntFunction</a> chain(<a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> g, |
| <a href="../../../../../org/apache/mahout/math/function/IntIntFunction.html" title="interface in org.apache.mahout.math.function">IntIntFunction</a> h)</pre> |
| <div class="block">Constructs the function <tt>g( h(a) )</tt>.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>g</code> - a unary function.</dd> |
| <dd><code>h</code> - an <a href="../../../../../org/apache/mahout/math/function/IntIntFunction.html" title="interface in org.apache.mahout.math.function"><code>IntIntFunction</code></a> function.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the unary function <tt>g( h(a) )</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="compare-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>compare</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> compare(double b)</pre> |
| <div class="block">Constructs a function that returns <code>a < b ? -1 : a > b ? 1 : 0</code>. <tt>a</tt> is a variable, <tt>b</tt> is |
| fixed.</div> |
| </li> |
| </ul> |
| <a name="constant-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>constant</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> constant(double c)</pre> |
| <div class="block">Constructs a function that returns the constant <tt>c</tt>.</div> |
| </li> |
| </ul> |
| <a name="div-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>div</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> div(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a / b</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="equals-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>equals</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> equals(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a == b ? 1 : 0</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="notEqual-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>notEqual</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> notEqual(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a != b ? 1 : 0</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="greater-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>greater</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> greater(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a > b ? 1 : 0</tt>. <tt>a</tt> |
| is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="mathIEEEremainder-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mathIEEEremainder</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> mathIEEEremainder(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>Math.IEEEremainder(a,b)</tt>. <tt>a</tt> is a variable, <tt>b</tt> is |
| fixed.</div> |
| </li> |
| </ul> |
| <a name="isBetween-double-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isBetween</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a> isBetween(double from, |
| double to)</pre> |
| <div class="block">Constructs a function that returns <code>from<=a && a<=to</code>. <tt>a</tt> |
| is a variable, <tt>from</tt> and |
| <tt>to</tt> are fixed. |
| |
| Note that DoubleProcedure is generated code and thus looks like an invalid reference unless you can see |
| the generated stuff.</div> |
| </li> |
| </ul> |
| <a name="isEqual-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isEqual</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a> isEqual(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a == b</tt>. <tt>a</tt> is a |
| variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="isGreater-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isGreater</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a> isGreater(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a > b</tt>. <tt>a</tt> is a |
| variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="isLess-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>isLess</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleProcedure.html" title="interface in org.apache.mahout.math.function">DoubleProcedure</a> isLess(double b)</pre> |
| <div class="block">Constructs a function that returns <code>a < b</code>. <tt>a</tt> is a |
| variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="less-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>less</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> less(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a < b ? 1 : 0</tt>. <tt>a</tt> is a |
| variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="lg-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>lg</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> lg(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>Math.log(a) / Math.log(b)</tt>. |
| <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="max-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>max</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> max(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>Math.max(a,b)</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="min-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>min</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> min(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>Math.min(a,b)</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="minus-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>minus</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> minus(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a - b</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="minusMult-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>minusMult</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> minusMult(double constant)</pre> |
| <div class="block">Constructs a function that returns <tt>a - b*constant</tt>. <tt>a</tt> and <tt>b</tt> are variables, |
| <tt>constant</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="mod-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mod</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> mod(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a % b</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="mult-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>mult</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> mult(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a * b</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="plus-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>plus</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> plus(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>a + b</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="plusMult-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>plusMult</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> plusMult(double constant)</pre> |
| <div class="block">Constructs a function that returns <tt>a + b*constant</tt>. <tt>a</tt> and <tt>b</tt> are variables, |
| <tt>constant</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="pow-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>pow</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> pow(double b)</pre> |
| <div class="block">Constructs a function that returns <tt>Math.pow(a,b)</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed.</div> |
| </li> |
| </ul> |
| <a name="random--"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>random</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> random()</pre> |
| <div class="block">Constructs a function that returns a new uniform random number in the open unit interval <code>(0.0,1.0)</code> |
| (excluding 0.0 and 1.0). Currently the engine is <a href="../../../../../org/apache/mahout/math/jet/random/engine/MersenneTwister.html" title="class in org.apache.mahout.math.jet.random.engine"><code>MersenneTwister</code></a> and is |
| seeded with the current time. <p> Note that any random engine derived from <a href="../../../../../org/apache/mahout/math/jet/random/engine/RandomEngine.html" title="class in org.apache.mahout.math.jet.random.engine"><code>RandomEngine</code></a> and any random distribution derived from <a href="../../../../../org/apache/mahout/math/jet/random/AbstractDistribution.html" title="class in org.apache.mahout.math.jet.random"><code>AbstractDistribution</code></a> are function objects, because they implement the proper |
| interfaces. Thus, if you are not happy with the default, just pass your favourite random generator to function |
| evaluating methods.</div> |
| </li> |
| </ul> |
| <a name="round-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>round</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleFunction</a> round(double precision)</pre> |
| <div class="block">Constructs a function that returns the number rounded to the given precision; |
| <tt>Math.rint(a/precision)*precision</tt>. Examples: |
| <code>precision = 0.01 rounds 0.012 --> 0.01, 0.018 --> 0.02 |
| precision = 10 rounds 123 --> 120 , 127 --> 130 |
| </code></div> |
| </li> |
| </ul> |
| <a name="swapArgs-org.apache.mahout.math.function.DoubleDoubleFunction-"> |
| <!-- --> |
| </a> |
| <ul class="blockList"> |
| <li class="blockList"> |
| <h4>swapArgs</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> swapArgs(<a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> function)</pre> |
| <div class="block">Constructs a function that returns <tt>function.apply(b,a)</tt>, i.e. applies the function with the first operand |
| as second operand and the second operand as first operand.</div> |
| <dl> |
| <dt><span class="paramLabel">Parameters:</span></dt> |
| <dd><code>function</code> - a function taking operands in the form <tt>function.apply(a,b)</tt>.</dd> |
| <dt><span class="returnLabel">Returns:</span></dt> |
| <dd>the binary function <tt>function(b,a)</tt>.</dd> |
| </dl> |
| </li> |
| </ul> |
| <a name="minusAbsPow-double-"> |
| <!-- --> |
| </a> |
| <ul class="blockListLast"> |
| <li class="blockList"> |
| <h4>minusAbsPow</h4> |
| <pre>public static <a href="../../../../../org/apache/mahout/math/function/DoubleDoubleFunction.html" title="class in org.apache.mahout.math.function">DoubleDoubleFunction</a> minusAbsPow(double exponent)</pre> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </li> |
| </ul> |
| </div> |
| </div> |
| <!-- ========= END OF CLASS DATA ========= --> |
| <!-- ======= START OF BOTTOM NAVBAR ====== --> |
| <div class="bottomNav"><a name="navbar.bottom"> |
| <!-- --> |
| </a> |
| <div class="skipNav"><a href="#skip.navbar.bottom" title="Skip navigation links">Skip navigation links</a></div> |
| <a name="navbar.bottom.firstrow"> |
| <!-- --> |
| </a> |
| <ul class="navList" title="Navigation"> |
| <li><a href="../../../../../overview-summary.html">Overview</a></li> |
| <li><a href="package-summary.html">Package</a></li> |
| <li class="navBarCell1Rev">Class</li> |
| <li><a href="class-use/Functions.html">Use</a></li> |
| <li><a href="package-tree.html">Tree</a></li> |
| <li><a href="../../../../../deprecated-list.html">Deprecated</a></li> |
| <li><a href="../../../../../index-all.html">Index</a></li> |
| <li><a href="../../../../../help-doc.html">Help</a></li> |
| </ul> |
| </div> |
| <div class="subNav"> |
| <ul class="navList"> |
| <li><a href="../../../../../org/apache/mahout/math/function/FloatShortProcedure.html" title="interface in org.apache.mahout.math.function"><span class="typeNameLink">Prev Class</span></a></li> |
| <li><a href="../../../../../org/apache/mahout/math/function/IntByteProcedure.html" title="interface in org.apache.mahout.math.function"><span class="typeNameLink">Next Class</span></a></li> |
| </ul> |
| <ul class="navList"> |
| <li><a href="../../../../../index.html?org/apache/mahout/math/function/Functions.html" target="_top">Frames</a></li> |
| <li><a href="Functions.html" target="_top">No Frames</a></li> |
| </ul> |
| <ul class="navList" id="allclasses_navbar_bottom"> |
| <li><a href="../../../../../allclasses-noframe.html">All Classes</a></li> |
| </ul> |
| <div> |
| <script type="text/javascript"><!-- |
| allClassesLink = document.getElementById("allclasses_navbar_bottom"); |
| if(window==top) { |
| allClassesLink.style.display = "block"; |
| } |
| else { |
| allClassesLink.style.display = "none"; |
| } |
| //--> |
| </script> |
| </div> |
| <div> |
| <ul class="subNavList"> |
| <li>Summary: </li> |
| <li>Nested | </li> |
| <li><a href="#field.summary">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.summary">Method</a></li> |
| </ul> |
| <ul class="subNavList"> |
| <li>Detail: </li> |
| <li><a href="#field.detail">Field</a> | </li> |
| <li>Constr | </li> |
| <li><a href="#method.detail">Method</a></li> |
| </ul> |
| </div> |
| <a name="skip.navbar.bottom"> |
| <!-- --> |
| </a></div> |
| <!-- ======== END OF BOTTOM NAVBAR ======= --> |
| <p class="legalCopy"><small>Copyright © 2008–2017 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> |
| </body> |
| </html> |