org.apache.mahout.math
Class VectorView.Element

java.lang.Object
  extended by org.apache.mahout.math.VectorView.Element
All Implemented Interfaces:
Vector.Element
Enclosing class:
VectorView

public class VectorView.Element
extends java.lang.Object
implements Vector.Element


Method Summary
 double get()
           
 int index()
           
 void set(double value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

get

public double get()
Specified by:
get in interface Vector.Element
Returns:
the value of this vector element.

index

public int index()
Specified by:
index in interface Vector.Element
Returns:
the index of this vector element.

set

public void set(double value)
Specified by:
set in interface Vector.Element
Parameters:
value - Set the current element to value.


Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.