com.expleague.ml.RankIt Maven / Gradle / Ivy
package com.expleague.ml;
import com.expleague.commons.func.Computable;
import com.expleague.ml.data.set.VecDataSet;
import com.expleague.ml.data.impl.RankedDataSet;
/**
* User: solar
* Date: 12.11.13
* Time: 18:43
*/
public class RankIt implements Computable {
VecDataSet set;
RankedDataSet result = null;
public synchronized RankedDataSet value() {
if (result == null)
result = new RankedDataSet(set);
return result;
}
@Override
public RankIt compute(final VecDataSet argument) {
set = argument;
return this;
}
}