Examples of range()


Examples of java.time.chrono.ChronoLocalDate.range()

                return temporal.isSupported(field);
            }
            @Override
            public ValueRange range(TemporalField field) {
                if (effectiveDate != null && field.isDateBased()) {
                    return effectiveDate.range(field);
                }
                return temporal.range(field);
            }
            @Override
            public long getLong(TemporalField field) {
View Full Code Here

Examples of kodkod.ast.RelationPredicate.Function.range()

                return max;
            }
            public Integer visit(RelationPredicate x) {
                if (x instanceof Function) {
                    Function f = ((Function)x);
                    return max(f.domain().accept(this), f.range().accept(this));
                }
                return 1;
            }
            public Integer visit(NaryExpression x) {
                int max = 0;
View Full Code Here

Examples of kodkod.instance.TupleFactory.range()

                          for(Tuple t:allelem) {
                              if (prev==null) first=t; else next.add(prev.product(t));
                              prev=t;
                          }
                          try {
                              sol.shrink(totalOrderPredicates.get(i+1), factory.range(first,first), factory.range(first,first));
                              sol.shrink(totalOrderPredicates.get(i+2), factory.range(prev,prev), factory.range(prev,prev));
                              sol.shrink(totalOrderPredicates.get(i+3), next, next);
                          } catch(Throwable ex) {
                              // Error here is not fatal
                          }
View Full Code Here

Examples of net.flexmojos.oss.compiler.ILanguageRange.range()

        when( fontCfg.getLanguagesConfiguration() ).thenReturn( langsCfg );
        when( langsCfg.getLanguageRange() ).thenReturn( new ILanguageRange[] { thaiLangRangeCfg, ptLangRangeCfg } );
        when( thaiLangRangeCfg.lang() ).thenReturn( "Thai" );
        when( thaiLangRangeCfg.range() ).thenReturn( "U+0E01-0E5B" );
        when( ptLangRangeCfg.lang() ).thenReturn( "ptBR" );
        when( ptLangRangeCfg.range() ).thenReturn( "U+0A0C-0EAA" );
        when( metadataCfg.getCreator() ).thenReturn( new String[] { "Marvin", "VELO", "Froeder" } );
        when( cfg.getRuntimeSharedLibraryPath() ).thenReturn( new IRuntimeSharedLibraryPath[] { runtimeCfg } );
        when( runtimeCfg.pathElement() ).thenReturn( "MyLibrary.swc" );
        when( runtimeCfg.rslUrl() ).thenReturn( urls );
        when( cfg.getFramesConfiguration() ).thenReturn( frameCfg );
View Full Code Here

Examples of org.encog.mathutil.LinearCongruentialGenerator.range()

    final BasicMLDataSet result = new BasicMLDataSet();
    for (int i = 0; i < count; i++) {
      final MLData inputData = new BasicMLData(inputCount);

      for (int j = 0; j < inputCount; j++) {
        inputData.setData(j, rand.range(min, max));
      }

      final MLData idealData = new BasicMLData(idealCount);

      for (int j = 0; j < idealCount; j++) {
View Full Code Here

Examples of org.encog.mathutil.LinearCongruentialGenerator.range()

      }

      final MLData idealData = new BasicMLData(idealCount);

      for (int j = 0; j < idealCount; j++) {
        idealData.setData(j, rand.range(min, max));
      }

      final BasicMLDataPair pair = new BasicMLDataPair(inputData,
          idealData);
      result.add(pair);
View Full Code Here

Examples of org.encog.mathutil.LinearCongruentialGenerator.range()

   
    for (int i = 0; i < count; i++) {
      final MLData inputData = new BasicMLData(inputCount);

      for (int j = 0; j < inputCount; j++) {
        inputData.setData(j, rand.range(min, max));
      }

      final MLData idealData = new BasicMLData(idealCount);

      for (int j = 0; j < idealCount; j++) {
View Full Code Here

Examples of org.encog.mathutil.LinearCongruentialGenerator.range()

      }

      final MLData idealData = new BasicMLData(idealCount);

      for (int j = 0; j < idealCount; j++) {
        idealData.setData(j, rand.range(min, max));
      }

      final BasicMLDataPair pair = new BasicMLDataPair(inputData,
          idealData);
      training.add(pair);
View Full Code Here

Examples of org.hibernate.search.query.dsl.QueryBuilder.range()

    calendar.set( 1900, 2, 12, 0, 0, 0 );
    Date from = calendar.getTime();
    calendar.set( 1910, 2, 12, 0, 0, 0 );
    Date to = calendar.getTime();

    Query query = monthQb
        .range()
          .onField( "estimatedCreation" )
          .andField( "justfortest" )
            .ignoreFieldBridge().ignoreAnalyzer()
          .from( from )
View Full Code Here

Examples of org.hibernate.search.query.dsl.QueryBuilder.range()

          .to( to ).excludeLimit()
          .createQuery();

    assertEquals( 1, fullTextSession.createFullTextQuery( query, Month.class ).getResultSize() );

    query = monthQb
        .range()
          .onField( "estimatedCreation" )
            .ignoreFieldBridge()
          .andField( "justfortest" )
            .ignoreFieldBridge().ignoreAnalyzer()
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.