root/src/java/com/omniti/reconnoiter/esper/ExactRegressionLinestView.java

Revision 5640498f39ed92d4917c04691ad51ab3d17d0674, 2.1 kB (checked in by Theo Schlossnagle <jesus@omniti.com>, 8 years ago)

Regressions that use arbitrary precision math libraries.... step 1, refs #210

  • Property mode set to 100644
Line 
1 /**************************************************************************************
2  * Copyright (C) 2008 EsperTech, Inc. All rights reserved.                            *
3  * Copyright (C) 2009 OmniTI, Inc. All rights reserved.                               *
4  * http://esper.codehaus.org                                                          *
5  * http://www.espertech.com                                                           *
6  * ---------------------------------------------------------------------------------- *
7  * The software in this package is published under the terms of the GPL license       *
8  * a copy of which has been included with this distribution in the license.txt file.  *
9  **************************************************************************************/
10 package com.omniti.reconnoiter.esper;
11
12 import com.espertech.esper.client.EventType;
13 import com.espertech.esper.core.StatementContext;
14 import com.espertech.esper.view.CloneableView;
15 import com.espertech.esper.view.View;
16 import com.espertech.esper.epl.expression.ExprNode;
17
18 public final class ExactRegressionLinestView extends ExactBaseBivariateStatisticsView implements CloneableView
19 {
20     private EventType eventType;
21
22     public ExactRegressionLinestView(StatementContext statementContext, ExprNode xFieldName, ExprNode yFieldName)
23     {
24         super(statementContext, new ExactRegressionBean(), xFieldName, yFieldName);
25     }
26
27     public View cloneView(StatementContext statementContext)
28     {
29         return new ExactRegressionLinestView(statementContext, this.getExpressionX(), this.getExpressionY());
30     }
31
32     public static EventType getEventType(com.espertech.esper.event.EventAdapterService eas)
33     {
34         return eas.addBeanType(ExactRegressionBean.class.getName(), ExactRegressionBean.class, false);
35     }
36
37     public EventType getEventType()
38     {
39         return getEventType(statementContext.getEventAdapterService());
40     }
41
42     public String toString()
43     {
44         return this.getClass().getName() +
45                 " fieldX=" + this.getExpressionX() +
46                 " fieldY=" + this.getExpressionY();
47     }
48 }
49
Note: See TracBrowser for help on using the browser.