Examples of Interval


Examples of com.enernoc.open.oadr2.model.v20b.ei.Interval

                        .withSignalID("hi there")
                        .withCurrentValue(new CurrentValue(new PayloadFloatType(1.0f)))
                        .withSignalName("simple")
                        .withSignalType(SignalTypeEnumeratedType.LEVEL)
                        .withIntervals( new Intervals()
                            .withIntervals( new Interval()
                              .withStreamPayloadBases( eiObjectFactory.createSignalPayload(
                                      new SignalPayload( eiObjectFactory.createPayloadFloat(
                                              new PayloadFloatType( 1.0f) ) ) ) )
                              .withDuration( new DurationPropType( new DurationValue( "PT1M" )) )
                              .withDtstart( new Dtstart(new DateTime( startDttm )) )
View Full Code Here

Examples of com.enterprisemath.math.algebra.Interval

     *
     * @param observations observation for which the mixture will be estimated
     * @return estimated mixture
     */
    public NormalDistributionMixture estimate(ObservationProvider<Double> observations) {
        Interval minMax = extractInterval(observations);
        ValidationUtils.guardGreaterOrEqualDouble(minMax.getMin(), -1000000,
                "observation interval is out of range for calcualtion");
        ValidationUtils.guardGreaterOrEqualDouble(1000000, minMax.getMax(),
                "observation interval is out of range for calcualtion");

        NormalDistributionMixture res = initializeOneCompoenent(observations);
        invokeStepListener(res);
        double resL = Double.NEGATIVE_INFINITY;
View Full Code Here

Examples of com.facebook.presto.jdbc.internal.joda.time.Interval

            case VALUE_STRING:
               String v = jsonParser.getText();
                int dashIndex = v.indexOf('-');
                long start = Long.valueOf(v.substring(0, dashIndex));
                long end = Long.valueOf(v.substring(dashIndex + 1));
                return new Interval(start, end);
        }
        throw deserializationContext.mappingException("expected JSON String");
    }
View Full Code Here

Examples of com.googlecode.gaal.suffix.api.IntervalTree.Interval

    private void visualizeEmbeddedSuffixes(String fileName, String caption, String label) throws IOException {
        buffer.append(String.format(LATEX_INPUT, fileName));
        Writer out = new FileWriter(DOC_PATH + fileName);
        LinearizedSuffixTree lst = new LinearizedSuffixTreeImpl(corpus.sequence(), corpus.alphabetSize());
        int windowSize = 5;
        Interval interval = findInterval(lst, "in");
        LaTeXVisualizer.visualizeEmbeddedSuffixes(out, caption, label, lst, interval, windowSize, corpus);
        out.flush();
        out.close();
    }
View Full Code Here

Examples of com.gs.collections.impl.list.Interval

    }

    public ImmutableStack<Pair<T, Integer>> zipWithIndex()
    {
        int maxIndex = this.delegate.size() - 1;
        Interval indicies = Interval.fromTo(0, maxIndex);

        return ImmutableArrayStack.newStackFromTopToBottom(this.delegate.asReversed().zip(indicies).toList());
    }
View Full Code Here

Examples of com.impossibl.postgres.api.data.Interval

      {"float4", 1.23f},
      {"int2", (short)234},
      {"float8", 2.34d},
      {"int8", (long)234},
      {"int4", 234},
      {"interval", new Interval(1, 2, 3)},
      {"money", new BigDecimal("2342.00")},
      {"name", "hi"},
      {"numeric", new BigDecimal("2342.00")},
      {"oid", 132},
      {"int4range", new Maker() {
View Full Code Here

Examples of com.impossibl.postgres.types.PrimitiveType.Interval

      long timeMicros = buffer.readLong();
      int days = buffer.readInt();
      int months = buffer.readInt();

      return new Interval(months, days, timeMicros);
    }
View Full Code Here

Examples of com.projity.pm.time.Interval

//      startOffset -= splitDuration;
//      endOffset -= splitDuration;
//    }


    Interval range = getRangeThatIntervalCanBeMoved(start,startOffset,endOffset);
    if (extendDuration > 0)
      extendDuration = Math.min(extendDuration,range.getEnd() - endOffset); // don't allow to shift more than possible
    else
      extendDuration = Math.max(extendDuration,startOffset - endOffset);
    newDetail().extend(endOffset,extendDuration);
  }
View Full Code Here

Examples of com.samskivert.util.Interval

            ParlorSender.gameIsReady(bobj, _gameobj.getOid());
        }

        // start up a no-show timer if needed
        if (needsNoShowTimer()) {
            (_noShowInterval = new Interval(_omgr) {
                @Override
                public void expired () {
                    checkForNoShows();
                }
            }).schedule(getNoShowTime());
View Full Code Here

Examples of com.thinkaurelius.titan.util.datastructures.Interval

                    if (type.getSortKey().length > 0 && conditions.hasChildren()) {
                        remainingConditions = conditions.clone();
                        sortKeyConstraints = compileSortKeyConstraints(type,tx,remainingConditions);
                        if (sortKeyConstraints==null) continue; //Constraints cannot be matched

                        Interval interval;
                        if (sortKeyConstraints[sortKeyConstraints.length-1] == null ||
                                (interval=sortKeyConstraints[sortKeyConstraints.length-1].interval) == null || !interval.isPoint()) {
                            vertexConstraintApplies = false;

                        }
                    }
                    Direction[] dirs = {dir};
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.