org.neo4j.graphalgo.impl.util
Class MatrixUtil.DoubleVector

java.lang.Object
  extended by org.neo4j.graphalgo.impl.util.MatrixUtil.DoubleVector
Enclosing class:
MatrixUtil

public static class MatrixUtil.DoubleVector
extends Object

Vector of doubles


Constructor Summary
MatrixUtil.DoubleVector()
           
 
Method Summary
 Double get(Integer index)
          Get a value for a certain index.
 Set<Integer> getIndices()
          Get all indices for which values are stored.
 void incrementValue(Integer index, double increment)
          Increment a value in the vector.
 void set(Integer index, double value)
          Set a value for a certain index.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MatrixUtil.DoubleVector

public MatrixUtil.DoubleVector()
Method Detail

incrementValue

public void incrementValue(Integer index,
                           double increment)
Increment a value in the vector.

Parameters:
index -
increment -

set

public void set(Integer index,
                double value)
Set a value for a certain index.

Parameters:
index -
value -

get

public Double get(Integer index)
Get a value for a certain index.

Parameters:
index -
Returns:
The value or null.

getIndices

public Set<Integer> getIndices()
Get all indices for which values are stored.

Returns:
The indices as a set.

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2012 The Neo4j Graph Database Project. All Rights Reserved.