示例#1
0
        public static RandomWrapper getRandom(long seed)
        {
            RandomWrapper random = new RandomWrapper(seed);

            INSTANCES[random] = true;
            return(random);
        }
示例#2
0
 public static RandomWrapper getRandom() {
   RandomWrapper random = new RandomWrapper();
   if (testSeed) {
     random.resetToTestSeed();
   }
   INSTANCES[random ] = true;
   return random;
 }
示例#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;
 }
示例#6
0
 public static RandomWrapper getRandom(long seed) {
   RandomWrapper random = new RandomWrapper(seed);
   INSTANCES[random] = true;
   return random;
 }