Examples of FloatProcedure


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

   *
   * @return <tt>true</tt> if the receiver contains the specified key.
   */
  public boolean containsKey(final float key) {
    return !forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float iterKey) {
            return (key != iterKey);
          }
        }
View Full Code Here

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

   *                  continues.
   * @return <tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise.
   */
  public boolean forEachPair(final FloatObjectProcedure<T> procedure) {
    return forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float key) {
            return procedure.apply(key, get(key));
          }
        }
View Full Code Here

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

   * @param list the list to be filled, can have any size.
   */
  public void keys(final FloatArrayList list) {
    list.clear();
    forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float key) {
            list.add(key);
            return true;
          }
View Full Code Here

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

   * @param list the list to be filled, can have any size.
   */
  public void values(final List<T> list) {
    list.clear();
    forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float key) {
            list.add(get(key));
            return true;
          }
View Full Code Here

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

   *
   * @return <tt>true</tt> if the receiver contains the specified key.
   */
  public boolean containsKey(final float key) {
    return !forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float iterKey) {
            return (key != iterKey);
          }
        }
View Full Code Here

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

   *                  continues.
   * @return <tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise.
   */
  public boolean forEachPair(final FloatCharProcedure procedure) {
    return forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float key) {
            return procedure.apply(key, get(key));
          }
        }
View Full Code Here

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

   * @param list the list to be filled, can have any size.
   */
  public void keys(final FloatArrayList list) {
    list.clear();
    forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float key) {
            list.add(key);
            return true;
          }
View Full Code Here

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

   * @param list the list to be filled, can have any size.
   */
  public void values(final CharArrayList list) {
    list.clear();
    forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float key) {
            list.add(get(key));
            return true;
          }
View Full Code Here

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

   *
   * @return <tt>true</tt> if the receiver contains the specified key.
   */
  public boolean containsKey(final float key) {
    return !forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float iterKey) {
            return (key != iterKey);
          }
        }
View Full Code Here

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

   *                  continues.
   * @return <tt>false</tt> if the procedure stopped before all keys where iterated over, <tt>true</tt> otherwise.
   */
  public boolean forEachPair(final FloatShortProcedure procedure) {
    return forEachKey(
        new FloatProcedure() {
          @Override
          public boolean apply(float key) {
            return procedure.apply(key, get(key));
          }
        }
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.