org.apache.mahout.math
Class DenseVector.Element

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

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


Constructor Summary
DenseVector.Element(int ind)
           
 
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
 

Constructor Detail

DenseVector.Element

public DenseVector.Element(int ind)
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.