Package org.apache.mahout.math.function

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


    }
  }
 
  @Test
  public void testQuickSortShorts() {
    ShortComparator revComp = new ShortComparator() {
     
      @Override
      public int compare(short o1, short o2) {
        if (o2 < o1) {
          return -1;
View Full Code Here


    Sorting.mergeSort(stuff, 100, stuff.length);
    for (int x = 100; x < (stuff.length - 1); x++) {
      assertTrue(stuff[x] <= stuff[x + 1]);
    }
   
    ShortComparator revComp = new ShortComparator() {
     
      @Override
      public int compare(short o1, short o2) {
        if (o2 < o1) {
          return -1;
View Full Code Here

TOP

Related Classes of org.apache.mahout.math.function.ShortComparator

Copyright © 2018 www.massapicom. 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.