grinda.test
Class SparseVector

java.lang.Object
  extended by grinda.test.SparseVector

public class SparseVector
extends java.lang.Object

An implementation of a sparse vector

Version:
1.0
Author:
Sirio Capizzi

Constructor Summary
SparseVector(byte[] data)
           
SparseVector(byte[] data, int start, int length)
           
 
Method Summary
 double get(int index)
           
 int getLength()
           
 void set(int index, double v)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SparseVector

public SparseVector(byte[] data)

SparseVector

public SparseVector(byte[] data,
                    int start,
                    int length)
Method Detail

get

public double get(int index)

set

public void set(int index,
                double v)

getLength

public int getLength()


Copyright © 2006 Sirio Capizzi. All Rights Reserved.