libsvm
Class Cache

java.lang.Object
  extended by libsvm.Cache

 class Cache
extends java.lang.Object


Nested Class Summary
private  class Cache.head_t
           
 
Field Summary
private  Cache.head_t[] head
           
private  int l
           
private  Cache.head_t lru_head
           
private  long size
           
 
Constructor Summary
Cache(int l_, long size_)
           
 
Method Summary
(package private)  int get_data(int index, float[][] data, int len)
           
private  void lru_delete(Cache.head_t h)
           
private  void lru_insert(Cache.head_t h)
           
(package private)  void swap_index(int i, int j)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

l

private final int l

size

private long size

head

private final Cache.head_t[] head

lru_head

private Cache.head_t lru_head
Constructor Detail

Cache

Cache(int l_,
      long size_)
Method Detail

lru_delete

private void lru_delete(Cache.head_t h)

lru_insert

private void lru_insert(Cache.head_t h)

get_data

int get_data(int index,
             float[][] data,
             int len)

swap_index

void swap_index(int i,
                int j)