Examples of IntFunction


Examples of org.apache.mahout.math.function.IntFunction

    };
  }

  /** Constructs a function that returns <tt>(int) Math.pow(a,b)</tt>. <tt>a</tt> is a variable, <tt>b</tt> is fixed. */
  public static IntFunction pow(final int b) {
    return new IntFunction() {

      public int apply(int a) {
        return (int) Math.pow(a, b);
      }
    };
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.