annotate libs/commons-math-2.1/docs/apidocs/org/apache/commons/math/optimization/fitting/PolynomialFitter.html @ 15:878723cc40fb

commons-math-2.1 added
author dwinter
date Tue, 04 Jan 2011 10:02:41 +0100
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
15
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
2 <!--NewPage-->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
3 <HTML>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
4 <HEAD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
5 <!-- Generated by javadoc (build 1.6.0_17) on Sat Mar 27 22:46:15 EDT 2010 -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
7 <TITLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
8 PolynomialFitter (Commons Math 2.1 API)
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
9 </TITLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
10
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
11 <META NAME="date" CONTENT="2010-03-27">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
12
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../../stylesheet.css" TITLE="Style">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
14
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
15 <SCRIPT type="text/javascript">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
16 function windowTitle()
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
17 {
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
18 if (location.href.indexOf('is-external=true') == -1) {
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
19 parent.document.title="PolynomialFitter (Commons Math 2.1 API)";
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
20 }
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
21 }
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
22 </SCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
23 <NOSCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
24 </NOSCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
25
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
26 </HEAD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
27
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
28 <BODY BGCOLOR="white" onload="windowTitle();">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
29 <HR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
30
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
31
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
32 <!-- ========= START OF TOP NAVBAR ======= -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
33 <A NAME="navbar_top"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
34 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
35 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
36 <TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
37 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
38 <A NAME="navbar_top_firstrow"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
39 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
40 <TR ALIGN="center" VALIGN="top">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PolynomialFitter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
49 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
50 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
51 </TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
52 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
53 </EM>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
54 </TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
55 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
56
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
57 <TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
59 &nbsp;<A HREF="../../../../../../org/apache/commons/math/optimization/fitting/ParametricRealFunction.html" title="interface in org.apache.commons.math.optimization.fitting"><B>PREV CLASS</B></A>&nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
60 &nbsp;<A HREF="../../../../../../org/apache/commons/math/optimization/fitting/WeightedObservedPoint.html" title="class in org.apache.commons.math.optimization.fitting"><B>NEXT CLASS</B></A></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
61 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
62 <A HREF="../../../../../../index.html?org/apache/commons/math/optimization/fitting/PolynomialFitter.html" target="_top"><B>FRAMES</B></A> &nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
63 &nbsp;<A HREF="PolynomialFitter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
64 &nbsp;<SCRIPT type="text/javascript">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
65 <!--
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
66 if(window==top) {
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
67 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
68 }
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
69 //-->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
70 </SCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
71 <NOSCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
72 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
73 </NOSCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
74
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
75
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
76 </FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
77 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
78 <TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
80 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
81 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
82 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
83 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
84 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
85 <A NAME="skip-navbar_top"></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
86 <!-- ========= END OF TOP NAVBAR ========= -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
87
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
88 <HR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
89 <!-- ======== START OF CLASS DATA ======== -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
90 <H2>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
91 <FONT SIZE="-1">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
92 org.apache.commons.math.optimization.fitting</FONT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
93 <BR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
94 Class PolynomialFitter</H2>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
95 <PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
96 <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">java.lang.Object</A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
97 <IMG SRC="../../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.math.optimization.fitting.PolynomialFitter</B>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
98 </PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
99 <HR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
100 <DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
101 <DT><PRE>public class <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/fitting/PolynomialFitter.html#line.34"><B>PolynomialFitter</B></A><DT>extends <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
102 </PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
103
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
104 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
105 This class implements a curve fitting specialized for polynomials.
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
106 <p>Polynomial fitting is a very simple case of curve fitting. The
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
107 estimated coefficients are the polynomial coefficients. They are
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
108 searched by a least square estimator.</p>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
109 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
110
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
111 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
112 <DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
113 <DT><B>Since:</B></DT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
114 <DD>2.0</DD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
115 <DT><B>Version:</B></DT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
116 <DD>$Revision: 811685 $ $Date: 2009-09-05 13:36:48 -0400 (Sat, 05 Sep 2009) $</DD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
117 </DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
118 <HR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
119
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
120 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
121
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
122 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
123
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
124 <A NAME="constructor_summary"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
125 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
126 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
127 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
128 <B>Constructor Summary</B></FONT></TH>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
129 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
130 <TR BGCOLOR="white" CLASS="TableRowColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
131 <TD><CODE><B><A HREF="../../../../../../org/apache/commons/math/optimization/fitting/PolynomialFitter.html#PolynomialFitter(int, org.apache.commons.math.optimization.DifferentiableMultivariateVectorialOptimizer)">PolynomialFitter</A></B>(int&nbsp;degree,
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
132 <A HREF="../../../../../../org/apache/commons/math/optimization/DifferentiableMultivariateVectorialOptimizer.html" title="interface in org.apache.commons.math.optimization">DifferentiableMultivariateVectorialOptimizer</A>&nbsp;optimizer)</CODE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
133
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
134 <BR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
135 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Simple constructor.</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
136 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
137 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
138 &nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
139 <!-- ========== METHOD SUMMARY =========== -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
140
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
141 <A NAME="method_summary"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
142 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
143 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
144 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
145 <B>Method Summary</B></FONT></TH>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
146 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
147 <TR BGCOLOR="white" CLASS="TableRowColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
148 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
149 <CODE>&nbsp;void</CODE></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
150 <TD><CODE><B><A HREF="../../../../../../org/apache/commons/math/optimization/fitting/PolynomialFitter.html#addObservedPoint(double, double, double)">addObservedPoint</A></B>(double&nbsp;weight,
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
151 double&nbsp;x,
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
152 double&nbsp;y)</CODE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
153
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
154 <BR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
155 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Add an observed weighted (x,y) point to the sample.</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
156 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
157 <TR BGCOLOR="white" CLASS="TableRowColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
158 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
159 <CODE>&nbsp;<A HREF="../../../../../../org/apache/commons/math/analysis/polynomials/PolynomialFunction.html" title="class in org.apache.commons.math.analysis.polynomials">PolynomialFunction</A></CODE></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
160 <TD><CODE><B><A HREF="../../../../../../org/apache/commons/math/optimization/fitting/PolynomialFitter.html#fit()">fit</A></B>()</CODE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
161
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
162 <BR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
163 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Get the polynomial fitting the weighted (x, y) points.</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
164 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
165 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
166 &nbsp;<A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
167 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
168 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
169 <TH ALIGN="left"><B>Methods inherited from class java.lang.<A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true" title="class or interface in java.lang">Object</A></B></TH>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
170 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
171 <TR BGCOLOR="white" CLASS="TableRowColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
172 <TD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#clone()" title="class or interface in java.lang">clone</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#equals(java.lang.Object)" title="class or interface in java.lang">equals</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#finalize()" title="class or interface in java.lang">finalize</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#getClass()" title="class or interface in java.lang">getClass</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#hashCode()" title="class or interface in java.lang">hashCode</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notify()" title="class or interface in java.lang">notify</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#notifyAll()" title="class or interface in java.lang">notifyAll</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#toString()" title="class or interface in java.lang">toString</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait()" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long)" title="class or interface in java.lang">wait</A>, <A HREF="http://java.sun.com/javase/6/docs/api/java/lang/Object.html?is-external=true#wait(long, int)" title="class or interface in java.lang">wait</A></CODE></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
173 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
174 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
175 &nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
176 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
177
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
178 <!-- ========= CONSTRUCTOR DETAIL ======== -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
179
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
180 <A NAME="constructor_detail"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
181 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
182 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
183 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
184 <B>Constructor Detail</B></FONT></TH>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
185 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
186 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
187
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
188 <A NAME="PolynomialFitter(int, org.apache.commons.math.optimization.DifferentiableMultivariateVectorialOptimizer)"><!-- --></A><H3>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
189 PolynomialFitter</H3>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
190 <PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
191 public <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/fitting/PolynomialFitter.html#line.48"><B>PolynomialFitter</B></A>(int&nbsp;degree,
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
192 <A HREF="../../../../../../org/apache/commons/math/optimization/DifferentiableMultivariateVectorialOptimizer.html" title="interface in org.apache.commons.math.optimization">DifferentiableMultivariateVectorialOptimizer</A>&nbsp;optimizer)</PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
193 <DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
194 <DD>Simple constructor.
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
195 <p>The polynomial fitter built this way are complete polynomials,
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
196 ie. a n-degree polynomial has n+1 coefficients.</p>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
197 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
198 <DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
199 <DT><B>Parameters:</B><DD><CODE>degree</CODE> - maximal degree of the polynomial<DD><CODE>optimizer</CODE> - optimizer to use for the fitting</DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
200 </DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
201
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
202 <!-- ============ METHOD DETAIL ========== -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
203
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
204 <A NAME="method_detail"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
205 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
206 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
207 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
208 <B>Method Detail</B></FONT></TH>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
209 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
210 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
211
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
212 <A NAME="addObservedPoint(double, double, double)"><!-- --></A><H3>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
213 addObservedPoint</H3>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
214 <PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
215 public void <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/fitting/PolynomialFitter.html#line.59"><B>addObservedPoint</B></A>(double&nbsp;weight,
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
216 double&nbsp;x,
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
217 double&nbsp;y)</PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
218 <DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
219 <DD>Add an observed weighted (x,y) point to the sample.
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
220 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
221 <DD><DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
222 <DT><B>Parameters:</B><DD><CODE>weight</CODE> - weight of the observed point in the fit<DD><CODE>x</CODE> - abscissa of the point<DD><CODE>y</CODE> - observed value of the point at x, after fitting we should
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
223 have P(x) as close as possible to this value</DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
224 </DD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
225 </DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
226 <HR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
227
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
228 <A NAME="fit()"><!-- --></A><H3>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
229 fit</H3>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
230 <PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
231 public <A HREF="../../../../../../org/apache/commons/math/analysis/polynomials/PolynomialFunction.html" title="class in org.apache.commons.math.analysis.polynomials">PolynomialFunction</A> <A HREF="../../../../../../src-html/org/apache/commons/math/optimization/fitting/PolynomialFitter.html#line.67"><B>fit</B></A>()
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
232 throws <A HREF="../../../../../../org/apache/commons/math/optimization/OptimizationException.html" title="class in org.apache.commons.math.optimization">OptimizationException</A></PRE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
233 <DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
234 <DD>Get the polynomial fitting the weighted (x, y) points.
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
235 <P>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
236 <DD><DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
237
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
238 <DT><B>Returns:</B><DD>polynomial function best fitting the observed points
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
239 <DT><B>Throws:</B>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
240 <DD><CODE><A HREF="../../../../../../org/apache/commons/math/optimization/OptimizationException.html" title="class in org.apache.commons.math.optimization">OptimizationException</A></CODE> - if the algorithm failed to converge</DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
241 </DD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
242 </DL>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
243 <!-- ========= END OF CLASS DATA ========= -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
244 <HR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
245
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
246
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
247 <!-- ======= START OF BOTTOM NAVBAR ====== -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
248 <A NAME="navbar_bottom"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
249 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
250 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
251 <TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
252 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
253 <A NAME="navbar_bottom_firstrow"><!-- --></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
254 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
255 <TR ALIGN="center" VALIGN="top">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
256 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
257 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
258 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
259 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/PolynomialFitter.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
260 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
261 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
262 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
263 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
264 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
265 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
266 </TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
267 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
268 </EM>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
269 </TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
270 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
271
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
272 <TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
273 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
274 &nbsp;<A HREF="../../../../../../org/apache/commons/math/optimization/fitting/ParametricRealFunction.html" title="interface in org.apache.commons.math.optimization.fitting"><B>PREV CLASS</B></A>&nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
275 &nbsp;<A HREF="../../../../../../org/apache/commons/math/optimization/fitting/WeightedObservedPoint.html" title="class in org.apache.commons.math.optimization.fitting"><B>NEXT CLASS</B></A></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
276 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
277 <A HREF="../../../../../../index.html?org/apache/commons/math/optimization/fitting/PolynomialFitter.html" target="_top"><B>FRAMES</B></A> &nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
278 &nbsp;<A HREF="PolynomialFitter.html" target="_top"><B>NO FRAMES</B></A> &nbsp;
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
279 &nbsp;<SCRIPT type="text/javascript">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
280 <!--
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
281 if(window==top) {
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
282 document.writeln('<A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
283 }
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
284 //-->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
285 </SCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
286 <NOSCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
287 <A HREF="../../../../../../allclasses-noframe.html"><B>All Classes</B></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
288 </NOSCRIPT>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
289
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
290
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
291 </FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
292 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
293 <TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
294 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
295 SUMMARY:&nbsp;NESTED&nbsp;|&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
296 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
297 DETAIL:&nbsp;FIELD&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
298 </TR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
299 </TABLE>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
300 <A NAME="skip-navbar_bottom"></A>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
301 <!-- ======== END OF BOTTOM NAVBAR ======= -->
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
302
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
303 <HR>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
304 Copyright &#169; 2003-2010 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
305 </BODY>
878723cc40fb commons-math-2.1 added
dwinter
parents:
diff changeset
306 </HTML>