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:16 EDT 2010 -->
|
|
6 <META http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
7 <TITLE>
|
|
8 UniformRandomGenerator (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="UniformRandomGenerator (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/UniformRandomGenerator.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/UncorrelatedRandomVectorGenerator.html" title="class in org.apache.commons.math.random"><B>PREV CLASS</B></A>
|
|
60 <A HREF="../../../../../org/apache/commons/math/random/UnitSphereRandomVectorGenerator.html" title="class 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/UniformRandomGenerator.html" target="_top"><B>FRAMES</B></A>
|
|
63 <A HREF="UniformRandomGenerator.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 UniformRandomGenerator</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.UniformRandomGenerator</B>
|
|
98 </PRE>
|
|
99 <DL>
|
|
100 <DT><B>All Implemented Interfaces:</B> <DD><A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A></DD>
|
|
101 </DL>
|
|
102 <HR>
|
|
103 <DL>
|
|
104 <DT><PRE>public class <A HREF="../../../../../src-html/org/apache/commons/math/random/UniformRandomGenerator.html#line.32"><B>UniformRandomGenerator</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/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A></DL>
|
|
105 </PRE>
|
|
106
|
|
107 <P>
|
|
108 This class implements a normalized uniform random generator.
|
|
109 <p>Since it is a normalized random generator, it generates values
|
|
110 from a uniform distribution with mean equal to 0 and standard
|
|
111 deviation equal to 1. Generated values fall in the range
|
|
112 [-√3, +√3].</p>
|
|
113 <P>
|
|
114
|
|
115 <P>
|
|
116 <DL>
|
|
117 <DT><B>Since:</B></DT>
|
|
118 <DD>1.2</DD>
|
|
119 <DT><B>Version:</B></DT>
|
|
120 <DD>$Revision: 811827 $ $Date: 2009-09-06 11:32:50 -0400 (Sun, 06 Sep 2009) $</DD>
|
|
121 </DL>
|
|
122 <HR>
|
|
123
|
|
124 <P>
|
|
125
|
|
126 <!-- ======== CONSTRUCTOR SUMMARY ======== -->
|
|
127
|
|
128 <A NAME="constructor_summary"><!-- --></A>
|
|
129 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
130 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
131 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
132 <B>Constructor Summary</B></FONT></TH>
|
|
133 </TR>
|
|
134 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
135 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/UniformRandomGenerator.html#UniformRandomGenerator(org.apache.commons.math.random.RandomGenerator)">UniformRandomGenerator</A></B>(<A HREF="../../../../../org/apache/commons/math/random/RandomGenerator.html" title="interface in org.apache.commons.math.random">RandomGenerator</A> generator)</CODE>
|
|
136
|
|
137 <BR>
|
|
138 Create a new generator.</TD>
|
|
139 </TR>
|
|
140 </TABLE>
|
|
141
|
|
142 <!-- ========== METHOD SUMMARY =========== -->
|
|
143
|
|
144 <A NAME="method_summary"><!-- --></A>
|
|
145 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
146 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
147 <TH ALIGN="left" COLSPAN="2"><FONT SIZE="+2">
|
|
148 <B>Method Summary</B></FONT></TH>
|
|
149 </TR>
|
|
150 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
151 <TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
|
|
152 <CODE> double</CODE></FONT></TD>
|
|
153 <TD><CODE><B><A HREF="../../../../../org/apache/commons/math/random/UniformRandomGenerator.html#nextNormalizedDouble()">nextNormalizedDouble</A></B>()</CODE>
|
|
154
|
|
155 <BR>
|
|
156 Generate a random scalar with null mean and unit standard deviation.</TD>
|
|
157 </TR>
|
|
158 </TABLE>
|
|
159 <A NAME="methods_inherited_from_class_java.lang.Object"><!-- --></A>
|
|
160 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
161 <TR BGCOLOR="#EEEEFF" CLASS="TableSubHeadingColor">
|
|
162 <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>
|
|
163 </TR>
|
|
164 <TR BGCOLOR="white" CLASS="TableRowColor">
|
|
165 <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>
|
|
166 </TR>
|
|
167 </TABLE>
|
|
168
|
|
169 <P>
|
|
170
|
|
171 <!-- ========= CONSTRUCTOR DETAIL ======== -->
|
|
172
|
|
173 <A NAME="constructor_detail"><!-- --></A>
|
|
174 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
175 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
176 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
177 <B>Constructor Detail</B></FONT></TH>
|
|
178 </TR>
|
|
179 </TABLE>
|
|
180
|
|
181 <A NAME="UniformRandomGenerator(org.apache.commons.math.random.RandomGenerator)"><!-- --></A><H3>
|
|
182 UniformRandomGenerator</H3>
|
|
183 <PRE>
|
|
184 public <A HREF="../../../../../src-html/org/apache/commons/math/random/UniformRandomGenerator.html#line.46"><B>UniformRandomGenerator</B></A>(<A HREF="../../../../../org/apache/commons/math/random/RandomGenerator.html" title="interface in org.apache.commons.math.random">RandomGenerator</A> generator)</PRE>
|
|
185 <DL>
|
|
186 <DD>Create a new generator.
|
|
187 <P>
|
|
188 <DL>
|
|
189 <DT><B>Parameters:</B><DD><CODE>generator</CODE> - underlying random generator to use</DL>
|
|
190 </DL>
|
|
191
|
|
192 <!-- ============ METHOD DETAIL ========== -->
|
|
193
|
|
194 <A NAME="method_detail"><!-- --></A>
|
|
195 <TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
|
|
196 <TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
|
|
197 <TH ALIGN="left" COLSPAN="1"><FONT SIZE="+2">
|
|
198 <B>Method Detail</B></FONT></TH>
|
|
199 </TR>
|
|
200 </TABLE>
|
|
201
|
|
202 <A NAME="nextNormalizedDouble()"><!-- --></A><H3>
|
|
203 nextNormalizedDouble</H3>
|
|
204 <PRE>
|
|
205 public double <A HREF="../../../../../src-html/org/apache/commons/math/random/UniformRandomGenerator.html#line.55"><B>nextNormalizedDouble</B></A>()</PRE>
|
|
206 <DL>
|
|
207 <DD>Generate a random scalar with null mean and unit standard deviation.
|
|
208 <p>The number generated is uniformly distributed between -&sqrt;(3)
|
|
209 and +&sqrt;(3).</p>
|
|
210 <P>
|
|
211 <DD><DL>
|
|
212 <DT><B>Specified by:</B><DD><CODE><A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html#nextNormalizedDouble()">nextNormalizedDouble</A></CODE> in interface <CODE><A HREF="../../../../../org/apache/commons/math/random/NormalizedRandomGenerator.html" title="interface in org.apache.commons.math.random">NormalizedRandomGenerator</A></CODE></DL>
|
|
213 </DD>
|
|
214 <DD><DL>
|
|
215
|
|
216 <DT><B>Returns:</B><DD>a random scalar with null mean and unit standard deviation</DL>
|
|
217 </DD>
|
|
218 </DL>
|
|
219 <!-- ========= END OF CLASS DATA ========= -->
|
|
220 <HR>
|
|
221
|
|
222
|
|
223 <!-- ======= START OF BOTTOM NAVBAR ====== -->
|
|
224 <A NAME="navbar_bottom"><!-- --></A>
|
|
225 <A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
|
|
226 <TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
|
|
227 <TR>
|
|
228 <TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
|
|
229 <A NAME="navbar_bottom_firstrow"><!-- --></A>
|
|
230 <TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
|
|
231 <TR ALIGN="center" VALIGN="top">
|
|
232 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A> </TD>
|
|
233 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A> </TD>
|
|
234 <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> <FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT> </TD>
|
|
235 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="class-use/UniformRandomGenerator.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A> </TD>
|
|
236 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A> </TD>
|
|
237 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A> </TD>
|
|
238 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../index-all.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A> </TD>
|
|
239 <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1"> <A HREF="../../../../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A> </TD>
|
|
240 </TR>
|
|
241 </TABLE>
|
|
242 </TD>
|
|
243 <TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
|
|
244 </EM>
|
|
245 </TD>
|
|
246 </TR>
|
|
247
|
|
248 <TR>
|
|
249 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
250 <A HREF="../../../../../org/apache/commons/math/random/UncorrelatedRandomVectorGenerator.html" title="class in org.apache.commons.math.random"><B>PREV CLASS</B></A>
|
|
251 <A HREF="../../../../../org/apache/commons/math/random/UnitSphereRandomVectorGenerator.html" title="class in org.apache.commons.math.random"><B>NEXT CLASS</B></A></FONT></TD>
|
|
252 <TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
|
|
253 <A HREF="../../../../../index.html?org/apache/commons/math/random/UniformRandomGenerator.html" target="_top"><B>FRAMES</B></A>
|
|
254 <A HREF="UniformRandomGenerator.html" target="_top"><B>NO FRAMES</B></A>
|
|
255 <SCRIPT type="text/javascript">
|
|
256 <!--
|
|
257 if(window==top) {
|
|
258 document.writeln('<A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>');
|
|
259 }
|
|
260 //-->
|
|
261 </SCRIPT>
|
|
262 <NOSCRIPT>
|
|
263 <A HREF="../../../../../allclasses-noframe.html"><B>All Classes</B></A>
|
|
264 </NOSCRIPT>
|
|
265
|
|
266
|
|
267 </FONT></TD>
|
|
268 </TR>
|
|
269 <TR>
|
|
270 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
271 SUMMARY: NESTED | FIELD | <A HREF="#constructor_summary">CONSTR</A> | <A HREF="#method_summary">METHOD</A></FONT></TD>
|
|
272 <TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">
|
|
273 DETAIL: FIELD | <A HREF="#constructor_detail">CONSTR</A> | <A HREF="#method_detail">METHOD</A></FONT></TD>
|
|
274 </TR>
|
|
275 </TABLE>
|
|
276 <A NAME="skip-navbar_bottom"></A>
|
|
277 <!-- ======== END OF BOTTOM NAVBAR ======= -->
|
|
278
|
|
279 <HR>
|
|
280 Copyright © 2003-2010 <a href="http://www.apache.org/">The Apache Software Foundation</a>. All Rights Reserved.
|
|
281 </BODY>
|
|
282 </HTML>
|