Examples of actual()


Examples of com.thoughtworks.xstream.testutil.CallLog.actual()

    public void testObjectOutputStreamPropagatesCloseAndFlushEvents() throws IOException {
        // setup
        final CallLog log = new CallLog();
        Writer loggingWriter = new Writer() {
            public void close() {
                log.actual("close");
            }

            public void flush() {
                log.actual("flush");
            }
View Full Code Here

Examples of com.thoughtworks.xstream.testutil.CallLog.actual()

            public void close() {
                log.actual("close");
            }

            public void flush() {
                log.actual("flush");
            }

            public void write(char cbuf[], int off, int len) {
                // don't care about this
            }
View Full Code Here

Examples of com.thoughtworks.xstream.testutil.CallLog.actual()

    public void testObjectInputStreamPropegatesCloseEvent() throws IOException {
        // setup
        final CallLog log = new CallLog();
        Reader loggingReader = new StringReader("<int>1</int>") {
            public void close() {
                log.actual("close");
            }
        };

        // expectations
        log.expect("close");
View Full Code Here

Examples of org.infinispan.metadata.InternalMetadataImpl.actual()

   @Override
   public String getContentType(MarshalledEntry entry) {
      //ugly, to be solved together with ISPN-3460
      InternalMetadataImpl mei = (InternalMetadataImpl) entry.getMetadata();
      MimeMetadata metadata = (MimeMetadata) mei.actual();
      return metadata.contentType();
   }

   @Override
   public Metadata buildMetadata(String contentType, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) {
View Full Code Here

Examples of org.infinispan.metadata.impl.InternalMetadataImpl.actual()

   @Override
   public String getContentType(MarshalledEntry entry) {
      //ugly, to be solved together with ISPN-3460
      InternalMetadataImpl mei = (InternalMetadataImpl) entry.getMetadata();
      MimeMetadata metadata = (MimeMetadata) mei.actual();
      return metadata.contentType();
   }

   @Override
   public Metadata buildMetadata(String contentType, long lifespan, TimeUnit lifespanUnit, long maxIdle, TimeUnit maxIdleUnit) {
View Full Code Here

Examples of weka.classifiers.evaluation.NumericPrediction.actual()

      NumericPrediction pred = preds.get(i);
      String instNum = pad("" + (instanceNumberOffset + i + stepAhead), " ",
          maxColWidth, true);
      temp.append(instNum + "  ");

      double actual = pred.actual();
      String actualS = null;
      if (Utils.isMissingValue(actual)) {
        actualS = pad("?", " ", maxColWidth, true);
      } else {
        actualS = Utils.doubleToString(actual, 4);
View Full Code Here

Examples of weka.classifiers.evaluation.NumericPrediction.actual()

          m_predictions.get(i).get(m_predictions.get(i).size() - 2);
       
        if (!Utils.isMissingValue(currentForI.predicted()) &&
            !Utils.isMissingValue(previousForI.predicted()) &&
            !Utils.isMissingValue(currentForI.actual()) &&
            !Utils.isMissingValue(previousForI.actual())) {
          double predictedDirection =
            currentForI.predicted() - previousForI.predicted();
          double actualDirection =
            currentForI.actual() - previousForI.actual();
         
View Full Code Here

Examples of weka.classifiers.evaluation.NumericPrediction.actual()

            !Utils.isMissingValue(currentForI.actual()) &&
            !Utils.isMissingValue(previousForI.actual())) {
          double predictedDirection =
            currentForI.predicted() - previousForI.predicted();
          double actualDirection =
            currentForI.actual() - previousForI.actual();
         
          if (actualDirection > 0 && predictedDirection > 0) {
            m_correct[i]++;           
          } else if (actualDirection < 0 && predictedDirection < 0) {
            m_correct[i]++;
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.