You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mahout.apache.org by gs...@apache.org on 2009/12/18 00:22:41 UTC

svn commit: r891983 [9/47] - in /lucene/mahout/trunk: ./ core/ core/src/main/java/org/apache/mahout/cf/taste/hadoop/item/ core/src/main/java/org/apache/mahout/clustering/ core/src/main/java/org/apache/mahout/clustering/canopy/ core/src/main/java/org/ap...

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/DoubleBufferConsumer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/DoubleBufferConsumer.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/DoubleBufferConsumer.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/DoubleBufferConsumer.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,23 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.list.DoubleArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface DoubleBufferConsumer {
+
+  /**
+   * Adds all elements of the specified list to the receiver.
+   *
+   * @param list the list of which all elements shall be added.
+   */
+  void addAllOf(DoubleArrayList list);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/DoubleBufferConsumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,80 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.PersistentObject;
+import org.apache.mahout.math.list.IntArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public class IntBuffer extends PersistentObject implements IntBufferConsumer {
+
+  private final IntBufferConsumer target;
+  private final int[] elements;
+
+  // vars cached for speed
+  private final IntArrayList list;
+  private final int capacity;
+  private int size;
+
+  /**
+   * Constructs and returns a new buffer with the given target.
+   *
+   * @param target   the target to flush to.
+   * @param capacity the number of points the buffer shall be capable of holding before overflowing and flushing to the
+   *                 target.
+   */
+  public IntBuffer(IntBufferConsumer target, int capacity) {
+    this.target = target;
+    this.capacity = capacity;
+    this.elements = new int[capacity];
+    this.list = new IntArrayList(elements);
+    this.size = 0;
+  }
+
+  /**
+   * Adds the specified element to the receiver.
+   *
+   * @param element the element to add.
+   */
+  public void add(int element) {
+    if (this.size == this.capacity) {
+      flush();
+    }
+    this.elements[size++] = element;
+  }
+
+  /**
+   * Adds all elements of the specified list to the receiver.
+   *
+   * @param list the list of which all elements shall be added.
+   */
+  @Override
+  public void addAllOf(IntArrayList list) {
+    int listSize = list.size();
+    if (this.size + listSize >= this.capacity) {
+      flush();
+    }
+    this.target.addAllOf(list);
+  }
+
+  /** Sets the receiver's size to zero. In other words, forgets about any internally buffered elements. */
+  public void clear() {
+    this.size = 0;
+  }
+
+  /** Adds all internally buffered elements to the receiver's target, then resets the current buffer size to zero. */
+  public void flush() {
+    if (this.size > 0) {
+      list.setSize(this.size);
+      this.target.addAllOf(list);
+      this.size = 0;
+    }
+  }
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2D.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2D.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2D.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2D.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,88 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.PersistentObject;
+import org.apache.mahout.math.list.IntArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public class IntBuffer2D extends PersistentObject implements IntBuffer2DConsumer {
+
+  private final IntBuffer2DConsumer target;
+  private final int[] xElements;
+  private final int[] yElements;
+
+  // vars cached for speed
+  private final IntArrayList xList;
+  private final IntArrayList yList;
+  private final int capacity;
+  private int size;
+
+  /**
+   * Constructs and returns a new buffer with the given target.
+   *
+   * @param target   the target to flush to.
+   * @param capacity the number of points the buffer shall be capable of holding before overflowing and flushing to the
+   *                 target.
+   */
+  public IntBuffer2D(IntBuffer2DConsumer target, int capacity) {
+    this.target = target;
+    this.capacity = capacity;
+    this.xElements = new int[capacity];
+    this.yElements = new int[capacity];
+    this.xList = new IntArrayList(xElements);
+    this.yList = new IntArrayList(yElements);
+    this.size = 0;
+  }
+
+  /**
+   * Adds the specified point (x,y) to the receiver.
+   *
+   * @param x the x-coordinate of the point to add.
+   * @param y the y-coordinate of the point to add.
+   */
+  public void add(int x, int y) {
+    if (this.size == this.capacity) {
+      flush();
+    }
+    this.xElements[this.size] = x;
+    this.yElements[this.size++] = y;
+  }
+
+  /**
+   * Adds all specified points (x,y) to the receiver.
+   *
+   * @param x the x-coordinates of the points to add.
+   * @param y the y-coordinates of the points to add.
+   */
+  @Override
+  public void addAllOf(IntArrayList x, IntArrayList y) {
+    int listSize = x.size();
+    if (this.size + listSize >= this.capacity) {
+      flush();
+    }
+    this.target.addAllOf(x, y);
+  }
+
+  /** Sets the receiver's size to zero. In other words, forgets about any internally buffered elements. */
+  public void clear() {
+    this.size = 0;
+  }
+
+  /** Adds all internally buffered points to the receiver's target, then resets the current buffer size to zero. */
+  public void flush() {
+    if (this.size > 0) {
+      xList.setSize(this.size);
+      yList.setSize(this.size);
+      this.target.addAllOf(xList, yList);
+      this.size = 0;
+    }
+  }
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2D.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2DConsumer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2DConsumer.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2DConsumer.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2DConsumer.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,24 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.list.IntArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntBuffer2DConsumer {
+
+  /**
+   * Adds all specified (x,y) points to the receiver.
+   *
+   * @param x the x-coordinates of the points to be added.
+   * @param y the y-coordinates of the points to be added.
+   */
+  void addAllOf(IntArrayList x, IntArrayList y);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer2DConsumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3D.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3D.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3D.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3D.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,96 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.PersistentObject;
+import org.apache.mahout.math.list.IntArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public class IntBuffer3D extends PersistentObject implements IntBuffer3DConsumer {
+
+  private final IntBuffer3DConsumer target;
+  private final int[] xElements;
+  private final int[] yElements;
+  private final int[] zElements;
+
+  // vars cached for speed
+  private final IntArrayList xList;
+  private final IntArrayList yList;
+  private final IntArrayList zList;
+  private final int capacity;
+  private int size;
+
+  /**
+   * Constructs and returns a new buffer with the given target.
+   *
+   * @param target   the target to flush to.
+   * @param capacity the number of points the buffer shall be capable of holding before overflowing and flushing to the
+   *                 target.
+   */
+  public IntBuffer3D(IntBuffer3DConsumer target, int capacity) {
+    this.target = target;
+    this.capacity = capacity;
+    this.xElements = new int[capacity];
+    this.yElements = new int[capacity];
+    this.zElements = new int[capacity];
+    this.xList = new IntArrayList(xElements);
+    this.yList = new IntArrayList(yElements);
+    this.zList = new IntArrayList(zElements);
+    this.size = 0;
+  }
+
+  /**
+   * Adds the specified point (x,y,z) to the receiver.
+   *
+   * @param x the x-coordinate of the point to add.
+   * @param y the y-coordinate of the point to add.
+   * @param z the z-coordinate of the point to add.
+   */
+  public void add(int x, int y, int z) {
+    if (this.size == this.capacity) {
+      flush();
+    }
+    this.xElements[this.size] = x;
+    this.yElements[this.size] = y;
+    this.zElements[this.size++] = z;
+  }
+
+  /**
+   * Adds all specified (x,y,z) points to the receiver.
+   *
+   * @param xElements the x-coordinates of the points.
+   * @param yElements the y-coordinates of the points.
+   * @param zElements the y-coordinates of the points.
+   */
+  @Override
+  public void addAllOf(IntArrayList xElements, IntArrayList yElements, IntArrayList zElements) {
+    int listSize = xElements.size();
+    if (this.size + listSize >= this.capacity) {
+      flush();
+    }
+    this.target.addAllOf(xElements, yElements, zElements);
+  }
+
+  /** Sets the receiver's size to zero. In other words, forgets about any internally buffered elements. */
+  public void clear() {
+    this.size = 0;
+  }
+
+  /** Adds all internally buffered points to the receiver's target, then resets the current buffer size to zero. */
+  public void flush() {
+    if (this.size > 0) {
+      xList.setSize(this.size);
+      yList.setSize(this.size);
+      zList.setSize(this.size);
+      this.target.addAllOf(xList, yList, zList);
+      this.size = 0;
+    }
+  }
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3D.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3DConsumer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3DConsumer.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3DConsumer.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3DConsumer.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,25 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.list.IntArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntBuffer3DConsumer {
+
+  /**
+   * Adds all specified (x,y,z) points to the receiver.
+   *
+   * @param x the x-coordinates of the points to be added.
+   * @param y the y-coordinates of the points to be added.
+   * @param z the z-coordinates of the points to be added.
+   */
+  void addAllOf(IntArrayList x, IntArrayList y, IntArrayList z);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBuffer3DConsumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBufferConsumer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBufferConsumer.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBufferConsumer.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBufferConsumer.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,23 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.list.IntArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntBufferConsumer {
+
+  /**
+   * Adds all elements of the specified list to the receiver.
+   *
+   * @param list the list of which all elements shall be added.
+   */
+  void addAllOf(IntArrayList list);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/IntBufferConsumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBuffer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBuffer.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBuffer.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBuffer.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,80 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.PersistentObject;
+import org.apache.mahout.math.list.ObjectArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public class ObjectBuffer extends PersistentObject implements ObjectBufferConsumer {
+
+  private final ObjectBufferConsumer target;
+  private final Object[] elements;
+
+  // vars cached for speed
+  private final ObjectArrayList list;
+  private final int capacity;
+  private int size;
+
+  /**
+   * Constructs and returns a new buffer with the given target.
+   *
+   * @param target   the target to flush to.
+   * @param capacity the number of points the buffer shall be capable of holding before overflowing and flushing to the
+   *                 target.
+   */
+  public ObjectBuffer(ObjectBufferConsumer target, int capacity) {
+    this.target = target;
+    this.capacity = capacity;
+    this.elements = new Object[capacity];
+    this.list = new ObjectArrayList(elements);
+    this.size = 0;
+  }
+
+  /**
+   * Adds the specified element to the receiver.
+   *
+   * @param element the element to add.
+   */
+  public void add(Object element) {
+    if (this.size == this.capacity) {
+      flush();
+    }
+    this.elements[size++] = element;
+  }
+
+  /**
+   * Adds all elements of the specified list to the receiver.
+   *
+   * @param list the list of which all elements shall be added.
+   */
+  @Override
+  public void addAllOf(ObjectArrayList list) {
+    int listSize = list.size();
+    if (this.size + listSize >= this.capacity) {
+      flush();
+    }
+    this.target.addAllOf(list);
+  }
+
+  /** Sets the receiver's size to zero. In other words, forgets about any internally buffered elements. */
+  public void clear() {
+    this.size = 0;
+  }
+
+  /** Adds all internally buffered elements to the receiver's target, then resets the current buffer size to zero. */
+  public void flush() {
+    if (this.size > 0) {
+      list.setSize(this.size);
+      this.target.addAllOf(list);
+      this.size = 0;
+    }
+  }
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBuffer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBufferConsumer.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBufferConsumer.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBufferConsumer.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBufferConsumer.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,23 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.buffer;
+
+import org.apache.mahout.math.list.ObjectArrayList;
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface ObjectBufferConsumer {
+
+  /**
+   * Adds all elements of the specified list to the receiver.
+   *
+   * @param list the list of which all elements shall be added.
+   */
+  void addAllOf(ObjectArrayList list);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/ObjectBufferConsumer.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/package.html
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/package.html?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/package.html (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/package.html Thu Dec 17 23:22:16 2009
@@ -0,0 +1,6 @@
+<HTML>
+<BODY>
+Fixed sized (non resizable) streaming buffers connected to a target objects to which data is automatically flushed upon
+buffer overflow.
+</BODY>
+</HTML>

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/buffer/package.html
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/BooleanProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/BooleanProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/BooleanProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/BooleanProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,34 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes a single argument and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface BooleanProcedure {
+
+  /**
+   * Applies a procedure to an argument. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param element element passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(boolean element);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/BooleanProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteComparator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteComparator.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteComparator.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteComparator.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,67 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * A comparison function which imposes a <i>total ordering</i> on some collection of elements.  Comparators can be
+ * passed to a sort method (such as <tt>org.apache.mahout.math.Sorting.quickSort</tt>) to allow precise control over
+ * the sort order.<p>
+ *
+ * Note: It is generally a good idea for comparators to implement <tt>java.io.Serializable</tt>, as they may be used as
+ * ordering methods in serializable data structures.  In order for the data structure to serialize successfully, the
+ * comparator (if provided) must implement <tt>Serializable</tt>.<p>
+ *
+ * @see java.util.Comparator
+ * @see org.apache.mahout.math.Sorting
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface ByteComparator {
+
+  /**
+   * Compares its two arguments for order.  Returns a negative integer, zero, or a positive integer as the first
+   * argument is less than, equal to, or greater than the second.<p>
+   *
+   * The implementor must ensure that <tt>sgn(compare(x, y)) == -sgn(compare(y, x))</tt> for all <tt>x</tt> and
+   * <tt>y</tt>.  (This implies that <tt>compare(x, y)</tt> must throw an exception if and only if <tt>compare(y,
+   * x)</tt> throws an exception.)<p>
+   *
+   * The implementor must also ensure that the relation is transitive: <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y,
+   * z)&gt;0))</tt> implies <tt>compare(x, z)&gt;0</tt>.<p>
+   *
+   * Finally, the implementer must ensure that <tt>compare(x, y)==0</tt> implies that <tt>sgn(compare(x,
+   * z))==sgn(compare(y, z))</tt> for all <tt>z</tt>.<p>
+   *
+   * @return a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater
+   *         than the second.
+   */
+  int compare(byte o1, byte o2);
+
+  /**
+   * Indicates whether some other object is &quot;equal to&quot; this Comparator.  This method must obey the general
+   * contract of <tt>Object.equals(Object)</tt>.  Additionally, this method can return <tt>true</tt> <i>only</i> if the
+   * specified Object is also a comparator and it imposes the same ordering as this comparator.  Thus,
+   * <code>comp1.equals(comp2)</code> implies that <tt>sgn(comp1.compare(o1, o2))==sgn(comp2.compare(o1, o2))</tt> for
+   * every element <tt>o1</tt> and <tt>o2</tt>.<p>
+   *
+   * Note that it is <i>always</i> safe <i>not</i> to override <tt>Object.equals(Object)</tt>.  However, overriding this
+   * method may, in some cases, improve performance by allowing programs to determine that two distinct Comparators
+   * impose the same order.
+   *
+   * @param obj the reference object with which to compare.
+   * @return <code>true</code> only if the specified object is also a comparator and it imposes the same ordering as
+   *         this comparator.
+   * @see java.lang.Object#equals(java.lang.Object)
+   * @see java.lang.Object#hashCode()
+   */
+  boolean equals(Object obj);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteComparator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,34 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes a single argument and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface ByteProcedure {
+
+  /**
+   * Applies a procedure to an argument. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param element element passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(byte element);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/ByteProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharComparator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharComparator.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharComparator.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharComparator.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,67 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * A comparison function which imposes a <i>total ordering</i> on some collection of elements.  Comparators can be
+ * passed to a sort method (such as <tt>org.apache.mahout.math.Sorting.quickSort</tt>) to allow precise control over
+ * the sort order.<p>
+ *
+ * Note: It is generally a good idea for comparators to implement <tt>java.io.Serializable</tt>, as they may be used as
+ * ordering methods in serializable data structures.  In order for the data structure to serialize successfully, the
+ * comparator (if provided) must implement <tt>Serializable</tt>.<p>
+ *
+ * @see java.util.Comparator
+ * @see org.apache.mahout.math.Sorting
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface CharComparator {
+
+  /**
+   * Compares its two arguments for order.  Returns a negative integer, zero, or a positive integer as the first
+   * argument is less than, equal to, or greater than the second.<p>
+   *
+   * The implementor must ensure that <tt>sgn(compare(x, y)) == -sgn(compare(y, x))</tt> for all <tt>x</tt> and
+   * <tt>y</tt>.  (This implies that <tt>compare(x, y)</tt> must throw an exception if and only if <tt>compare(y,
+   * x)</tt> throws an exception.)<p>
+   *
+   * The implementor must also ensure that the relation is transitive: <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y,
+   * z)&gt;0))</tt> implies <tt>compare(x, z)&gt;0</tt>.<p>
+   *
+   * Finally, the implementer must ensure that <tt>compare(x, y)==0</tt> implies that <tt>sgn(compare(x,
+   * z))==sgn(compare(y, z))</tt> for all <tt>z</tt>.<p>
+   *
+   * @return a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater
+   *         than the second.
+   */
+  int compare(char o1, char o2);
+
+  /**
+   * Indicates whether some other object is &quot;equal to&quot; this Comparator.  This method must obey the general
+   * contract of <tt>Object.equals(Object)</tt>.  Additionally, this method can return <tt>true</tt> <i>only</i> if the
+   * specified Object is also a comparator and it imposes the same ordering as this comparator.  Thus,
+   * <code>comp1.equals(comp2)</code> implies that <tt>sgn(comp1.compare(o1, o2))==sgn(comp2.compare(o1, o2))</tt> for
+   * every element <tt>o1</tt> and <tt>o2</tt>.<p>
+   *
+   * Note that it is <i>always</i> safe <i>not</i> to override <tt>Object.equals(Object)</tt>.  However, overriding this
+   * method may, in some cases, improve performance by allowing programs to determine that two distinct Comparators
+   * impose the same order.
+   *
+   * @param obj the reference object with which to compare.
+   * @return <code>true</code> only if the specified object is also a comparator and it imposes the same ordering as
+   *         this comparator.
+   * @see java.lang.Object#equals(java.lang.Object)
+   * @see java.lang.Object#hashCode()
+   */
+  boolean equals(Object obj);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharComparator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,34 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes a single argument and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface CharProcedure {
+
+  /**
+   * Applies a procedure to an argument. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param element element passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(char element);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/CharProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double27Function.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double27Function.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double27Function.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double27Function.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,40 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a function object: a function that takes 27 arguments and returns a single value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface Double27Function {
+
+  /**
+   * Applies a function to 27 arguments.
+   *
+   * @return the result of the function.
+   */
+  double apply(
+      double a000, double a001, double a002,
+      double a010, double a011, double a012,
+      double a020, double a021, double a022,
+
+      double a100, double a101, double a102,
+      double a110, double a111, double a112,
+      double a120, double a121, double a122,
+
+      double a200, double a201, double a202,
+      double a210, double a211, double a212,
+      double a220, double a221, double a222
+  );
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double27Function.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double5Function.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double5Function.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double5Function.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double5Function.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,33 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a function object: a function that takes 5 arguments and returns a single value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface Double5Function {
+
+  /**
+   * Applies a function to two arguments.
+   *
+   * @param a the first argument passed to the function.
+   * @param b the second argument passed to the function.
+   * @param c the third argument passed to the function.
+   * @param d the fourth argument passed to the function.
+   * @param e the fifth argument passed to the function.
+   * @return the result of the function.
+   */
+  double apply(double a, double b, double c, double d, double e);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double5Function.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double9Function.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double9Function.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double9Function.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double9Function.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,32 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a function object: a function that takes 9 arguments and returns a single value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface Double9Function {
+
+  /**
+   * Applies a function to nine arguments.
+   *
+   * @return the result of the function.
+   */
+  double apply(
+      double a00, double a01, double a02,
+      double a10, double a11, double a12,
+      double a20, double a21, double a22
+  );
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/Double9Function.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleComparator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleComparator.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleComparator.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleComparator.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,67 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * A comparison function which imposes a <i>total ordering</i> on some collection of elements.  Comparators can be
+ * passed to a sort method (such as <tt>org.apache.mahout.math.Sorting.quickSort</tt>) to allow precise control over
+ * the sort order.<p>
+ *
+ * Note: It is generally a good idea for comparators to implement <tt>java.io.Serializable</tt>, as they may be used as
+ * ordering methods in serializable data structures.  In order for the data structure to serialize successfully, the
+ * comparator (if provided) must implement <tt>Serializable</tt>.<p>
+ *
+ * @see java.util.Comparator
+ * @see org.apache.mahout.math.Sorting
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface DoubleComparator {
+
+  /**
+   * Compares its two arguments for order.  Returns a negative integer, zero, or a positive integer as the first
+   * argument is less than, equal to, or greater than the second.<p>
+   *
+   * The implementor must ensure that <tt>sgn(compare(x, y)) == -sgn(compare(y, x))</tt> for all <tt>x</tt> and
+   * <tt>y</tt>.  (This implies that <tt>compare(x, y)</tt> must throw an exception if and only if <tt>compare(y,
+   * x)</tt> throws an exception.)<p>
+   *
+   * The implementor must also ensure that the relation is transitive: <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y,
+   * z)&gt;0))</tt> implies <tt>compare(x, z)&gt;0</tt>.<p>
+   *
+   * Finally, the implementer must ensure that <tt>compare(x, y)==0</tt> implies that <tt>sgn(compare(x,
+   * z))==sgn(compare(y, z))</tt> for all <tt>z</tt>.<p>
+   *
+   * @return a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater
+   *         than the second.
+   */
+  int compare(double o1, double o2);
+
+  /**
+   * Indicates whether some other object is &quot;equal to&quot; this Comparator.  This method must obey the general
+   * contract of <tt>Object.equals(Object)</tt>.  Additionally, this method can return <tt>true</tt> <i>only</i> if the
+   * specified Object is also a comparator and it imposes the same ordering as this comparator.  Thus,
+   * <code>comp1.equals(comp2)</code> implies that <tt>sgn(comp1.compare(o1, o2))==sgn(comp2.compare(o1, o2))</tt> for
+   * every element <tt>o1</tt> and <tt>o2</tt>.<p>
+   *
+   * Note that it is <i>always</i> safe <i>not</i> to override <tt>Object.equals(Object)</tt>.  However, overriding this
+   * method may, in some cases, improve performance by allowing programs to determine that two distinct Comparators
+   * impose the same order.
+   *
+   * @param obj the reference object with which to compare.
+   * @return <code>true</code> only if the specified object is also a comparator and it imposes the same ordering as
+   *         this comparator.
+   * @see java.lang.Object#equals(java.lang.Object)
+   * @see java.lang.Object#hashCode()
+   */
+  boolean equals(Object obj);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleComparator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleFunction.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleFunction.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleFunction.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleFunction.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,30 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a function object: a function that takes two arguments and returns a single value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface DoubleDoubleFunction {
+
+  /**
+   * Applies a function to two arguments.
+   *
+   * @param x the first argument passed to the function.
+   * @param y the second argument passed to the function.
+   * @return the result of the function.
+   */
+  double apply(double x, double y);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleFunction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,35 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes two arguments and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface DoubleDoubleProcedure {
+
+  /**
+   * Applies a procedure to two arguments. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param first  first argument passed to the procedure.
+   * @param second second argument passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(double first, double second);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleDoubleProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleFunction.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleFunction.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleFunction.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleFunction.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,29 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a function object: a function that takes a single argument and returns a single value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface DoubleFunction {
+
+  /**
+   * Applies a function to an argument.
+   *
+   * @param argument argument passed to the function.
+   * @return the result of the function.
+   */
+  double apply(double argument);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleFunction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleIntProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleIntProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleIntProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleIntProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,35 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes two arguments and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface DoubleIntProcedure {
+
+  /**
+   * Applies a procedure to two arguments. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param first  first argument passed to the procedure.
+   * @param second second argument passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(double first, int second);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleIntProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,34 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes a single argument and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface DoubleProcedure {
+
+  /**
+   * Applies a procedure to an argument. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param element element passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(double element);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/DoubleProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatComparator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatComparator.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatComparator.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatComparator.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,67 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * A comparison function which imposes a <i>total ordering</i> on some collection of elements.  Comparators can be
+ * passed to a sort method (such as <tt>org.apache.mahout.math.Sorting.quickSort</tt>) to allow precise control over
+ * the sort order.<p>
+ *
+ * Note: It is generally a good idea for comparators to implement <tt>java.io.Serializable</tt>, as they may be used as
+ * ordering methods in serializable data structures.  In order for the data structure to serialize successfully, the
+ * comparator (if provided) must implement <tt>Serializable</tt>.<p>
+ *
+ * @see java.util.Comparator
+ * @see org.apache.mahout.math.Sorting
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface FloatComparator {
+
+  /**
+   * Compares its two arguments for order.  Returns a negative integer, zero, or a positive integer as the first
+   * argument is less than, equal to, or greater than the second.<p>
+   *
+   * The implementor must ensure that <tt>sgn(compare(x, y)) == -sgn(compare(y, x))</tt> for all <tt>x</tt> and
+   * <tt>y</tt>.  (This implies that <tt>compare(x, y)</tt> must throw an exception if and only if <tt>compare(y,
+   * x)</tt> throws an exception.)<p>
+   *
+   * The implementor must also ensure that the relation is transitive: <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y,
+   * z)&gt;0))</tt> implies <tt>compare(x, z)&gt;0</tt>.<p>
+   *
+   * Finally, the implementer must ensure that <tt>compare(x, y)==0</tt> implies that <tt>sgn(compare(x,
+   * z))==sgn(compare(y, z))</tt> for all <tt>z</tt>.<p>
+   *
+   * @return a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater
+   *         than the second.
+   */
+  int compare(float o1, float o2);
+
+  /**
+   * Indicates whether some other object is &quot;equal to&quot; this Comparator.  This method must obey the general
+   * contract of <tt>Object.equals(Object)</tt>.  Additionally, this method can return <tt>true</tt> <i>only</i> if the
+   * specified Object is also a comparator and it imposes the same ordering as this comparator.  Thus,
+   * <code>comp1.equals(comp2)</code> implies that <tt>sgn(comp1.compare(o1, o2))==sgn(comp2.compare(o1, o2))</tt> for
+   * every element <tt>o1</tt> and <tt>o2</tt>.<p>
+   *
+   * Note that it is <i>always</i> safe <i>not</i> to override <tt>Object.equals(Object)</tt>.  However, overriding this
+   * method may, in some cases, improve performance by allowing programs to determine that two distinct Comparators
+   * impose the same order.
+   *
+   * @param obj the reference object with which to compare.
+   * @return <code>true</code> only if the specified object is also a comparator and it imposes the same ordering as
+   *         this comparator.
+   * @see java.lang.Object#equals(java.lang.Object)
+   * @see java.lang.Object#hashCode()
+   */
+  boolean equals(Object obj);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatComparator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,34 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes a single argument and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface FloatProcedure {
+
+  /**
+   * Applies a procedure to an argument. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param element element passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(float element);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/FloatProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntComparator.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntComparator.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntComparator.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntComparator.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,67 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * A comparison function which imposes a <i>total ordering</i> on some collection of elements.  Comparators can be
+ * passed to a sort method (such as <tt>org.apache.mahout.math.Sorting.quickSort</tt>) to allow precise control over
+ * the sort order.<p>
+ *
+ * Note: It is generally a good idea for comparators to implement <tt>java.io.Serializable</tt>, as they may be used as
+ * ordering methods in serializable data structures.  In order for the data structure to serialize successfully, the
+ * comparator (if provided) must implement <tt>Serializable</tt>.<p>
+ *
+ * @see java.util.Comparator
+ * @see org.apache.mahout.math.Sorting
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntComparator {
+
+  /**
+   * Compares its two arguments for order.  Returns a negative integer, zero, or a positive integer as the first
+   * argument is less than, equal to, or greater than the second.<p>
+   *
+   * The implementor must ensure that <tt>sgn(compare(x, y)) == -sgn(compare(y, x))</tt> for all <tt>x</tt> and
+   * <tt>y</tt>.  (This implies that <tt>compare(x, y)</tt> must throw an exception if and only if <tt>compare(y,
+   * x)</tt> throws an exception.)<p>
+   *
+   * The implementor must also ensure that the relation is transitive: <tt>((compare(x, y)&gt;0) &amp;&amp; (compare(y,
+   * z)&gt;0))</tt> implies <tt>compare(x, z)&gt;0</tt>.<p>
+   *
+   * Finally, the implementer must ensure that <tt>compare(x, y)==0</tt> implies that <tt>sgn(compare(x,
+   * z))==sgn(compare(y, z))</tt> for all <tt>z</tt>.<p>
+   *
+   * @return a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater
+   *         than the second.
+   */
+  int compare(int o1, int o2);
+
+  /**
+   * Indicates whether some other object is &quot;equal to&quot; this Comparator.  This method must obey the general
+   * contract of <tt>Object.equals(Object)</tt>.  Additionally, this method can return <tt>true</tt> <i>only</i> if the
+   * specified Object is also a comparator and it imposes the same ordering as this comparator.  Thus,
+   * <code>comp1.equals(comp2)</code> implies that <tt>sgn(comp1.compare(o1, o2))==sgn(comp2.compare(o1, o2))</tt> for
+   * every element <tt>o1</tt> and <tt>o2</tt>.<p>
+   *
+   * Note that it is <i>always</i> safe <i>not</i> to override <tt>Object.equals(Object)</tt>.  However, overriding this
+   * method may, in some cases, improve performance by allowing programs to determine that two distinct Comparators
+   * impose the same order.
+   *
+   * @param obj the reference object with which to compare.
+   * @return <code>true</code> only if the specified object is also a comparator and it imposes the same ordering as
+   *         this comparator.
+   * @see java.lang.Object#equals(java.lang.Object)
+   * @see java.lang.Object#hashCode()
+   */
+  boolean equals(Object obj);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntComparator.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleFunction.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleFunction.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleFunction.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleFunction.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,27 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.function;
+
+/**
+ * Interface that represents a function object: a function that takes two arguments.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntDoubleFunction {
+
+  /**
+   * Applies a function to two arguments.
+   *
+   * @param first  first argument passed to the function.
+   * @param second second argument passed to the function.
+   * @return the result of the function.
+   */
+  double apply(int first, double second);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleFunction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,35 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes two arguments and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntDoubleProcedure {
+
+  /**
+   * Applies a procedure to two arguments. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param first  first argument passed to the procedure.
+   * @param second second argument passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(int first, double second);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntDoubleProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntFunction.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntFunction.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntFunction.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntFunction.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,29 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a function object: a function that takes a single argument and returns a single value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntFunction {
+
+  /**
+   * Applies a function to an argument.
+   *
+   * @param argument argument passed to the function.
+   * @return the result of the function.
+   */
+  int apply(int argument);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntFunction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleFunction.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleFunction.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleFunction.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleFunction.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,28 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.function;
+
+/**
+ * Interface that represents a function object: a function that takes three arguments.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntIntDoubleFunction {
+
+  /**
+   * Applies a function to three arguments.
+   *
+   * @param first  first argument passed to the function.
+   * @param second second argument passed to the function.
+   * @param third  third argument passed to the function.
+   * @return the result of the function.
+   */
+  double apply(int first, int second, double third);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleFunction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,34 @@
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+package org.apache.mahout.math.function;
+
+/**
+ * Interface that represents a procedure object: a procedure that takes 
+ * three arguments and does not return a value.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntIntDoubleProcedure {
+
+  /**
+   * Applies a procedure to two arguments. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param first  first argument passed to the procedure.
+   * @param second second argument passed to the procedure.
+   * @param third  third argument passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(int first, int second, double third);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntDoubleProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntFunction.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntFunction.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntFunction.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntFunction.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,30 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a function object: a function that takes two arguments and returns a single value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntIntFunction {
+
+  /**
+   * Applies a function to two arguments.
+   *
+   * @param x the first argument passed to the function.
+   * @param y the second argument passed to the function.
+   * @return the result of the function.
+   */
+  int apply(int x, int y);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntFunction.java
------------------------------------------------------------------------------
    svn:eol-style = native

Added: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntIntProcedure.java
URL: http://svn.apache.org/viewvc/lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntIntProcedure.java?rev=891983&view=auto
==============================================================================
--- lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntIntProcedure.java (added)
+++ lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntIntProcedure.java Thu Dec 17 23:22:16 2009
@@ -0,0 +1,36 @@
+package org.apache.mahout.math.function;
+
+/*
+Copyright 1999 CERN - European Organization for Nuclear Research.
+Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose 
+is hereby granted without fee, provided that the above copyright notice appear in all copies and 
+that both that copyright notice and this permission notice appear in supporting documentation. 
+CERN makes no representations about the suitability of this software for any purpose. 
+It is provided "as is" without expressed or implied warranty.
+*/
+
+/**
+ * Interface that represents a procedure object: a procedure that takes three arguments and does not return a value.
+ *
+ * @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported.
+ */
+
+/** @deprecated until unit tests are in place.  Until this time, this class/interface is unsupported. */
+@Deprecated
+public interface IntIntIntProcedure {
+
+  /**
+   * Applies a procedure to three arguments. Optionally can return a boolean flag to inform the object calling the
+   * procedure.
+   *
+   * <p>Example: forEach() methods often use procedure objects. To signal to a forEach() method whether iteration should
+   * continue normally or terminate (because for example a matching element has been found), a procedure can return
+   * <tt>false</tt> to indicate termination and <tt>true</tt> to indicate continuation.
+   *
+   * @param first  first argument passed to the procedure.
+   * @param second second argument passed to the procedure.
+   * @param third  third argument passed to the procedure.
+   * @return a flag  to inform the object calling the procedure.
+   */
+  boolean apply(int first, int second, int third);
+}

Propchange: lucene/mahout/trunk/math/src/main/java/org/apache/mahout/math/function/IntIntIntProcedure.java
------------------------------------------------------------------------------
    svn:eol-style = native