public final class SamplingLongPrimitiveIterator
extends org.apache.mahout.cf.taste.impl.common.AbstractLongPrimitiveIterator
LongPrimitiveIterator and returns only some subset of the elements that it would,
as determined by a sampling rate parameter.
Adapted from the same class in Mahout 0.8.| Constructor and Description |
|---|
SamplingLongPrimitiveIterator(org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator delegate,
double samplingRate) |
SamplingLongPrimitiveIterator(org.apache.commons.math3.random.RandomGenerator random,
org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator delegate,
double samplingRate) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasNext() |
static org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator |
maybeWrapIterator(org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator delegate,
double samplingRate) |
long |
nextLong() |
long |
peek() |
void |
remove() |
void |
skip(int n) |
public SamplingLongPrimitiveIterator(org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator delegate,
double samplingRate)
public SamplingLongPrimitiveIterator(org.apache.commons.math3.random.RandomGenerator random,
org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator delegate,
double samplingRate)
public boolean hasNext()
public long nextLong()
public long peek()
public void remove()
UnsupportedOperationExceptionpublic void skip(int n)
public static org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator maybeWrapIterator(org.apache.mahout.cf.taste.impl.common.LongPrimitiveIterator delegate,
double samplingRate)
Copyright © 2012-2013 Myrrix Ltd. All Rights Reserved.