110111112113114115116117118119120
IFactory<IFunction> factory = new IFactory<IFunction>() { @Override public IFunction create() { return new DensityFunciton(distances); } }; factories.add(factory);