}
@Override
protected MapInstance computeValue(ProgressMonitor monitor, Arguments args) {
int size = args.nextOrFail();
final LatentSemanticIndex index = args.nextOrFail();
Configuration configuration = args.nextOrFail();
return configuration.withSize(size, new MapScheme<Double>() {
@Override
public Double forLocation(Point location) {
// return Math.max(1, Math.log(index.getDocumentLength(location.getDocument())));
// return Math.cbrt(index.getDocumentLength(location.getDocument()));
return Math.sqrt(index.getDocumentLength(location.getDocument()));
}
});
}