Exemplo n.º 1
0
        public static RandomWrapper getRandom(long seed)
        {
            RandomWrapper random = new RandomWrapper(seed);

            INSTANCES[random] = true;
            return(random);
        }
Exemplo n.º 2
0
 public static RandomWrapper getRandom() {
   RandomWrapper random = new RandomWrapper();
   if (testSeed) {
     random.resetToTestSeed();
   }
   INSTANCES[random ] = true;
   return random;
 }
Exemplo n.º 3
0
        public static RandomWrapper getRandom()
        {
            RandomWrapper random = new RandomWrapper();

            if (testSeed)
            {
                random.resetToTestSeed();
            }
            INSTANCES[random] = true;
            return(random);
        }
 public GenericRecommenderIRStatsEvaluator(IRelevantItemsDataSplitter dataSplitter) {
   //Preconditions.checkNotNull(dataSplitter);
   random = RandomUtils.getRandom();
   this.dataSplitter = dataSplitter;
 }
 protected AbstractDifferenceRecommenderEvaluator() {
   random = RandomUtils.getRandom();
   maxPreference = float.NaN;
   minPreference = float.NaN;
 }
Exemplo n.º 6
0
 public static RandomWrapper getRandom(long seed) {
   RandomWrapper random = new RandomWrapper(seed);
   INSTANCES[random] = true;
   return random;
 }