15
|
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
2 <!--NewPage-->
|
|
3 <HTML>
|
|
4 <HEAD>
|
|
5 <!-- Generated by javadoc (build 1.6.0_17) on Sat Mar 27 22:46:15 EDT 2010 -->
|
|
6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7 <TITLE>
|
|
8 CorrelatedRandomVectorGenerator (Commons Math 2.1 API)
|
|
9 </TITLE>
|
|
10
|
|
11 <META NAME="date" CONTENT="2010-03-27">
|
|
12
|
|
13 <LINK REL ="stylesheet" TYPE="text/css" HREF="../../../../../stylesheet.css" TITLE="Style">
|
|
14
|
|
15 <SCRIPT type="text/javascript">
|
|
16 function windowTitle()
|
|
17 {
|
|
18 if (location.href.indexOf('is-external=true') == -1) {
|
|
19 parent.document.title="CorrelatedRandomVectorGenerator (Commons Math 2.1 API)";
|
|
20 }
|
|
21 }
|
|
22 </SCRIPT>
|
|
23 <NOSCRIPT>
|
|
24 </NOSCRIPT>
|
|
25
|
|
26 </HEAD>
|
|
27
|
|
28 <BODY BGCOLOR="white" onload="windowTitle();">
|
|
29 <HR>
|
|
30
|
|
31
|
|
32 <!-- ========= START OF TOP NAVBAR ======= -->
|
|
33 <A NAME="navbar_top"><!-- --></A>
|
|
34 <A HREF="#skip-navbar_top" title="Skip navigation links"></A>
|
|
35 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
36 <TR>
|
|
37 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
38 <A NAME="navbar_top_firstrow"><!-- --></A>
|
|
39 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
40 <TR ALIGN="center" VALIGN="top">
|
|
41 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
42 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
43 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
44 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CorrelatedRandomVectorGenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
45 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
46 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
47 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
48 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
49 </TR>
|
|
50 </TABLE>
|
|
51 </TD>
|
|
52 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
53 </EM>
|
|
54 </TD>
|
|
55 </TR>
|
|
56
|
|
57 <TR>
|
|
58 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
59 <A HREF="../../../../../org/apache/commons/math/random/BitsStreamGenerator.html" title="class in org.apache.commons.math.random"><B>PREV CLASS</B></A>
|
|
60 <A HREF="../../../../../org/apache/commons/math/random/EmpiricalDistribution.html" title="interface in org.apache.commons.math.random"><B>NEXT CLASS</B></A></FONT></TD>
|
|
61 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
62 <A HREF="../../../../../index.html?org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html" target="_top"><B>FRAMES</B></A>
|
|
63 <A HREF="CorrelatedRandomVectorGenerator.html" target="_top"><B>NO FRAMES</B></A>
|
|
64 <SCRIPT type="text/javascript">
|
|
65 <!--
|
|
66 if(window==top) {
|
|
67 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
68 }
|
|
69 //-->
|
|
70 </SCRIPT>
|
|
71 <NOSCRIPT>
|
|
72 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
73 </NOSCRIPT>
|
|
74
|
|
75
|
|
76 </FONT></TD>
|
|
77 </TR>
|
|
78 <TR>
|
|
79 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
80 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
81 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
82 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
83 </TR>
|
|
84 </TABLE>
|
|
85 <A NAME="skip-navbar_top"></A>
|
|
86 <!-- ========= END OF TOP NAVBAR ========= -->
|
|
87
|
|
88 <HR>
|
|
89 <!-- ======== START OF CLASS DATA ======== -->
|
|
90 <H2>
|
|
91 <FONT SIZE="-1">
|
|
92 org.apache.commons.math.random</FONT>
|
|
93 <BR>
|
|
94 Class CorrelatedRandomVectorGenerator</H2>
|
|
95 <PRE>
|
|
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>
|
|
97 <IMG SRC="../../../../../resources/inherit.gif" ALT="extended by "><B>org.apache.commons.math.random.CorrelatedRandomVectorGenerator</B>
|
|
98 </PRE>
|
|
99 <DL>
|
|
100 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/commons/math/random/RandomVectorGenerator.html" title="interface in org.apache.commons.math.random">RandomVectorGenerator</A></DD>
|
|
101 </DL>
|
|
102 <HR>
|
|
103 <DL>
|
|
104 <DT><PRE>public class <A HREF="../../../../../src-html/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#line.62"><B>CorrelatedRandomVectorGenerator</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><DT>implements <A HREF="../../../../../org/apache/commons/math/random/RandomVectorGenerator.html" title="interface in org.apache.commons.math.random">RandomVectorGenerator</A></DL>
|
|
105 </PRE>
|
|
106
|
|
107 <P>
|
|
108 A <A HREF="../../../../../org/apache/commons/math/random/RandomVectorGenerator.html" title="interface in org.apache.commons.math.random"><CODE>RandomVectorGenerator</CODE></A> that generates vectors with with
|
|
109 correlated components.
|
|
110 <p>Random vectors with correlated components are built by combining
|
|
111 the uncorrelated components of another random vector in such a way that
|
|
112 the resulting correlations are the ones specified by a positive
|
|
113 definite covariance matrix.</p>
|
|
114 <p>The main use for correlated random vector generation is for Monte-Carlo
|
|
115 simulation of physical problems with several variables, for example to
|
|
116 generate error vectors to be added to a nominal vector. A particularly
|
|
117 interesting case is when the generated vector should be drawn from a <a
|
|
118 href="http://en.wikipedia.org/wiki/Multivariate_normal_distribution">
|
|
119 Multivariate Normal Distribution</a>. The approach using a Cholesky
|
|
120 decomposition is quite usual in this case. However, it cas be extended
|
|
121 to other cases as long as the underlying random generator provides
|
|
122 <A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random"><CODE>normalized values</CODE></A> like <A HREF="../../../../../org/apache/commons/math/random/GaussianRandomGenerator.html" title="class in org.apache.commons.math.random"><CODE>GaussianRandomGenerator</CODE></A> or <A HREF="../../../../../org/apache/commons/math/random/UniformRandomGenerator.html" title="class in org.apache.commons.math.random"><CODE>UniformRandomGenerator</CODE></A>.</p>
|
|
123 <p>Sometimes, the covariance matrix for a given simulation is not
|
|
124 strictly positive definite. This means that the correlations are
|
|
125 not all independent from each other. In this case, however, the non
|
|
126 strictly positive elements found during the Cholesky decomposition
|
|
127 of the covariance matrix should not be negative either, they
|
|
128 should be null. Another non-conventional extension handling this case
|
|
129 is used here. Rather than computing <code>C = U<sup>T</sup>.U</code>
|
|
130 where <code>C</code> is the covariance matrix and <code>U</code>
|
|
131 is an uppertriangular matrix, we compute <code>C = B.B<sup>T</sup></code>
|
|
132 where <code>B</code> is a rectangular matrix having
|
|
133 more rows than columns. The number of columns of <code>B</code> is
|
|
134 the rank of the covariance matrix, and it is the dimension of the
|
|
135 uncorrelated random vector that is needed to compute the component
|
|
136 of the correlated vector. This class handles this situation
|
|
137 automatically.</p>
|
|
138 <P>
|
|
139
|
|
140 <P>
|
|
141 <DL>
|
|
142 <DT><B>Since:</B></DT>
|
|
143 <DD>1.2</DD>
|
|
144 <DT><B>Version:</B></DT>
|
|
145 <DD>$Revision: 811827 $ $Date: 2009-09-06 11:32:50 -0400 (Sun, 06 Sep 2009) $</DD>
|
|
146 </DL>
|
|
147 <HR>
|
|
148
|
|
149 <P>
|
|
150
|
|
151 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
152
|
|
153 <A NAME="constructor_summary"><!-- --></A>
|
|
154 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
155 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
156 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
157 <B>Constructor Summary</B></FONT></TH>
|
|
158 </TR>
|
|
159 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
160 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#CorrelatedRandomVectorGenerator(double[], org.apache.commons.math.linear.RealMatrix, double, org.apache.commons.math.random.NormalizedRandomGenerator)">CorrelatedRandomVectorGenerator</A></B>(double[] mean,
|
|
161 <A HREF="../../../../../org/apache/commons/math/linear/RealMatrix.html" title="interface in org.apache.commons.math.linear">RealMatrix</A> covariance,
|
|
162 double small,
|
|
163 <A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A> generator)</CODE>
|
|
164
|
|
165 <BR>
|
|
166 Simple constructor.</TD>
|
|
167 </TR>
|
|
168 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
169 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#CorrelatedRandomVectorGenerator(org.apache.commons.math.linear.RealMatrix, double, org.apache.commons.math.random.NormalizedRandomGenerator)">CorrelatedRandomVectorGenerator</A></B>(<A HREF="../../../../../org/apache/commons/math/linear/RealMatrix.html" title="interface in org.apache.commons.math.linear">RealMatrix</A> covariance,
|
|
170 double small,
|
|
171 <A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A> generator)</CODE>
|
|
172
|
|
173 <BR>
|
|
174 Simple constructor.</TD>
|
|
175 </TR>
|
|
176 </TABLE>
|
|
177
|
|
178 <!-- ========== METHOD SUMMARY =========== -->
|
|
179
|
|
180 <A NAME="method_summary"><!-- --></A>
|
|
181 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
182 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
183 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
184 <B>Method Summary</B></FONT></TH>
|
|
185 </TR>
|
|
186 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
187 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
188 <CODE> <A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A></CODE></FONT></TD>
|
|
189 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#getGenerator()">getGenerator</A></B>()</CODE>
|
|
190
|
|
191 <BR>
|
|
192 Get the underlying normalized components generator.</TD>
|
|
193 </TR>
|
|
194 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
195 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
196 <CODE> int</CODE></FONT></TD>
|
|
197 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#getRank()">getRank</A></B>()</CODE>
|
|
198
|
|
199 <BR>
|
|
200 Get the rank of the covariance matrix.</TD>
|
|
201 </TR>
|
|
202 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
203 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
204 <CODE> <A HREF="../../../../../org/apache/commons/math/linear/RealMatrix.html" title="interface in org.apache.commons.math.linear">RealMatrix</A></CODE></FONT></TD>
|
|
205 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#getRootMatrix()">getRootMatrix</A></B>()</CODE>
|
|
206
|
|
207 <BR>
|
|
208 Get the root of the covariance matrix.</TD>
|
|
209 </TR>
|
|
210 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
211 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
212 <CODE> double[]</CODE></FONT></TD>
|
|
213 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#nextVector()">nextVector</A></B>()</CODE>
|
|
214
|
|
215 <BR>
|
|
216 Generate a correlated random vector.</TD>
|
|
217 </TR>
|
|
218 </TABLE>
|
|
219 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
220 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
221 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
222 <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>
|
|
223 </TR>
|
|
224 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
225 <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>
|
|
226 </TR>
|
|
227 </TABLE>
|
|
228
|
|
229 <P>
|
|
230
|
|
231 <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
232
|
|
233 <A NAME="constructor_detail"><!-- --></A>
|
|
234 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
235 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
236 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
237 <B>Constructor Detail</B></FONT></TH>
|
|
238 </TR>
|
|
239 </TABLE>
|
|
240
|
|
241 <A NAME="CorrelatedRandomVectorGenerator(double[], org.apache.commons.math.linear.RealMatrix, double, org.apache.commons.math.random.NormalizedRandomGenerator)"><!-- --></A><H3>
|
|
242 CorrelatedRandomVectorGenerator</H3>
|
|
243 <PRE>
|
|
244 public <A HREF="../../../../../src-html/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#line.96"><B>CorrelatedRandomVectorGenerator</B></A>(double[] mean,
|
|
245 <A HREF="../../../../../org/apache/commons/math/linear/RealMatrix.html" title="interface in org.apache.commons.math.linear">RealMatrix</A> covariance,
|
|
246 double small,
|
|
247 <A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A> generator)
|
|
248 throws <A HREF="../../../../../org/apache/commons/math/linear/NotPositiveDefiniteMatrixException.html" title="class in org.apache.commons.math.linear">NotPositiveDefiniteMatrixException</A>,
|
|
249 <A HREF="../../../../../org/apache/commons/math/DimensionMismatchException.html" title="class in org.apache.commons.math">DimensionMismatchException</A></PRE>
|
|
250 <DL>
|
|
251 <DD>Simple constructor.
|
|
252 <p>Build a correlated random vector generator from its mean
|
|
253 vector and covariance matrix.</p>
|
|
254 <P>
|
|
255 <DL>
|
|
256 <DT><B>Parameters:</B><DD><CODE>mean</CODE> - expected mean values for all components<DD><CODE>covariance</CODE> - covariance matrix<DD><CODE>small</CODE> - diagonal elements threshold under which column are
|
|
257 considered to be dependent on previous ones and are discarded<DD><CODE>generator</CODE> - underlying generator for uncorrelated normalized
|
|
258 components
|
|
259 <DT><B>Throws:</B>
|
|
260 <DD><CODE><A HREF="http://java.sun.com/javase/6/docs/api/java/lang/IllegalArgumentException.html?is-external=true" title="class or interface in java.lang">IllegalArgumentException</A></CODE> - if there is a dimension
|
|
261 mismatch between the mean vector and the covariance matrix
|
|
262 <DD><CODE><A HREF="../../../../../org/apache/commons/math/linear/NotPositiveDefiniteMatrixException.html" title="class in org.apache.commons.math.linear">NotPositiveDefiniteMatrixException</A></CODE> - if the
|
|
263 covariance matrix is not strictly positive definite
|
|
264 <DD><CODE><A HREF="../../../../../org/apache/commons/math/DimensionMismatchException.html" title="class in org.apache.commons.math">DimensionMismatchException</A></CODE> - if the mean and covariance
|
|
265 arrays dimensions don't match</DL>
|
|
266 </DL>
|
|
267 <HR>
|
|
268
|
|
269 <A NAME="CorrelatedRandomVectorGenerator(org.apache.commons.math.linear.RealMatrix, double, org.apache.commons.math.random.NormalizedRandomGenerator)"><!-- --></A><H3>
|
|
270 CorrelatedRandomVectorGenerator</H3>
|
|
271 <PRE>
|
|
272 public <A HREF="../../../../../src-html/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#line.125"><B>CorrelatedRandomVectorGenerator</B></A>(<A HREF="../../../../../org/apache/commons/math/linear/RealMatrix.html" title="interface in org.apache.commons.math.linear">RealMatrix</A> covariance,
|
|
273 double small,
|
|
274 <A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A> generator)
|
|
275 throws <A HREF="../../../../../org/apache/commons/math/linear/NotPositiveDefiniteMatrixException.html" title="class in org.apache.commons.math.linear">NotPositiveDefiniteMatrixException</A></PRE>
|
|
276 <DL>
|
|
277 <DD>Simple constructor.
|
|
278 <p>Build a null mean random correlated vector generator from its
|
|
279 covariance matrix.</p>
|
|
280 <P>
|
|
281 <DL>
|
|
282 <DT><B>Parameters:</B><DD><CODE>covariance</CODE> - covariance matrix<DD><CODE>small</CODE> - diagonal elements threshold under which column are
|
|
283 considered to be dependent on previous ones and are discarded<DD><CODE>generator</CODE> - underlying generator for uncorrelated normalized
|
|
284 components
|
|
285 <DT><B>Throws:</B>
|
|
286 <DD><CODE><A HREF="../../../../../org/apache/commons/math/linear/NotPositiveDefiniteMatrixException.html" title="class in org.apache.commons.math.linear">NotPositiveDefiniteMatrixException</A></CODE> - if the
|
|
287 covariance matrix is not strictly positive definite</DL>
|
|
288 </DL>
|
|
289
|
|
290 <!-- ============ METHOD DETAIL ========== -->
|
|
291
|
|
292 <A NAME="method_detail"><!-- --></A>
|
|
293 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
294 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
295 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
296 <B>Method Detail</B></FONT></TH>
|
|
297 </TR>
|
|
298 </TABLE>
|
|
299
|
|
300 <A NAME="getGenerator()"><!-- --></A><H3>
|
|
301 getGenerator</H3>
|
|
302 <PRE>
|
|
303 public <A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A> <A HREF="../../../../../src-html/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#line.145"><B>getGenerator</B></A>()</PRE>
|
|
304 <DL>
|
|
305 <DD>Get the underlying normalized components generator.
|
|
306 <P>
|
|
307 <DD><DL>
|
|
308 </DL>
|
|
309 </DD>
|
|
310 <DD><DL>
|
|
311
|
|
312 <DT><B>Returns:</B><DD>underlying uncorrelated components generator</DL>
|
|
313 </DD>
|
|
314 </DL>
|
|
315 <HR>
|
|
316
|
|
317 <A NAME="getRootMatrix()"><!-- --></A><H3>
|
|
318 getRootMatrix</H3>
|
|
319 <PRE>
|
|
320 public <A HREF="../../../../../org/apache/commons/math/linear/RealMatrix.html" title="interface in org.apache.commons.math.linear">RealMatrix</A> <A HREF="../../../../../src-html/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#line.155"><B>getRootMatrix</B></A>()</PRE>
|
|
321 <DL>
|
|
322 <DD>Get the root of the covariance matrix.
|
|
323 The root is the rectangular matrix <code>B</code> such that
|
|
324 the covariance matrix is equal to <code>B.B<sup>T</sup></code>
|
|
325 <P>
|
|
326 <DD><DL>
|
|
327 </DL>
|
|
328 </DD>
|
|
329 <DD><DL>
|
|
330
|
|
331 <DT><B>Returns:</B><DD>root of the square matrix<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#getRank()"><CODE>getRank()</CODE></A></DL>
|
|
332 </DD>
|
|
333 </DL>
|
|
334 <HR>
|
|
335
|
|
336 <A NAME="getRank()"><!-- --></A><H3>
|
|
337 getRank</H3>
|
|
338 <PRE>
|
|
339 public int <A HREF="../../../../../src-html/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#line.166"><B>getRank</B></A>()</PRE>
|
|
340 <DL>
|
|
341 <DD>Get the rank of the covariance matrix.
|
|
342 The rank is the number of independent rows in the covariance
|
|
343 matrix, it is also the number of columns of the rectangular
|
|
344 matrix of the decomposition.
|
|
345 <P>
|
|
346 <DD><DL>
|
|
347 </DL>
|
|
348 </DD>
|
|
349 <DD><DL>
|
|
350
|
|
351 <DT><B>Returns:</B><DD>rank of the square matrix.<DT><B>See Also:</B><DD><A HREF="../../../../../org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#getRootMatrix()"><CODE>getRootMatrix()</CODE></A></DL>
|
|
352 </DD>
|
|
353 </DL>
|
|
354 <HR>
|
|
355
|
|
356 <A NAME="nextVector()"><!-- --></A><H3>
|
|
357 nextVector</H3>
|
|
358 <PRE>
|
|
359 public double[] <A HREF="../../../../../src-html/org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html#line.283"><B>nextVector</B></A>()</PRE>
|
|
360 <DL>
|
|
361 <DD>Generate a correlated random vector.
|
|
362 <P>
|
|
363 <DD><DL>
|
|
364 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/math/random/RandomVectorGenerator.html#nextVector()">nextVector</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/math/random/RandomVectorGenerator.html" title="interface in org.apache.commons.math.random">RandomVectorGenerator</A></CODE></DL>
|
|
365 </DD>
|
|
366 <DD><DL>
|
|
367
|
|
368 <DT><B>Returns:</B><DD>a random vector as an array of double. The returned array
|
|
369 is created at each call, the caller can do what it wants with it.</DL>
|
|
370 </DD>
|
|
371 </DL>
|
|
372 <!-- ========= END OF CLASS DATA ========= -->
|
|
373 <HR>
|
|
374
|
|
375
|
|
376 <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
377 <A NAME="navbar_bottom"><!-- --></A>
|
|
378 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
379 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
380 <TR>
|
|
381 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
382 <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
383 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
384 <TR ALIGN="center" VALIGN="top">
|
|
385 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
386 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
387 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
388 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/CorrelatedRandomVectorGenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
389 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
390 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
391 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
392 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
393 </TR>
|
|
394 </TABLE>
|
|
395 </TD>
|
|
396 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
397 </EM>
|
|
398 </TD>
|
|
399 </TR>
|
|
400
|
|
401 <TR>
|
|
402 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
403 <A HREF="../../../../../org/apache/commons/math/random/BitsStreamGenerator.html" title="class in org.apache.commons.math.random"><B>PREV CLASS</B></A>
|
|
404 <A HREF="../../../../../org/apache/commons/math/random/EmpiricalDistribution.html" title="interface in org.apache.commons.math.random"><B>NEXT CLASS</B></A></FONT></TD>
|
|
405 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
406 <A HREF="../../../../../index.html?org/apache/commons/math/random/CorrelatedRandomVectorGenerator.html" target="_top"><B>FRAMES</B></A>
|
|
407 <A HREF="CorrelatedRandomVectorGenerator.html" target="_top"><B>NO FRAMES</B></A>
|
|
408 <SCRIPT type="text/javascript">
|
|
409 <!--
|
|
410 if(window==top) {
|
|
411 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
412 }
|
|
413 //-->
|
|
414 </SCRIPT>
|
|
415 <NOSCRIPT>
|
|
416 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
417 </NOSCRIPT>
|
|
418
|
|
419
|
|
420 </FONT></TD>
|
|
421 </TR>
|
|
422 <TR>
|
|
423 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
424 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
425 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
426 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
427 </TR>
|
|
428 </TABLE>
|
|
429 <A NAME="skip-navbar_bottom"></A>
|
|
430 <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
431
|
|
432 <HR>
|
|
433 Copyright © 2003-2010 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
|
|
434 </BODY>
|
|
435 </HTML>
|