Lines Matching defs:in

6  * (the "License"); you may not use this file except in compliance with
11 * Unless required by applicable law or agreed to in writing, software
49 * <li>Generate a uniformly distributed value in (0,1) </li>
89 /** upper bounds of subintervals in (0,1) "belonging" to the bins */
92 /** RandomData instance to use in repeated calls to getNext() */
117 * @param in the input data array
119 public void load(double[] in) {
120 DataAdapter da = new ArrayDataAdapter(in);
123 fillBinStats(in);
138 BufferedReader in =
141 DataAdapter da = new StreamDataAdapter(in);
147 in = new BufferedReader(new InputStreamReader(url.openStream()));
148 fillBinStats(in);
152 in.close();
166 BufferedReader in = new BufferedReader(new FileReader(file));
168 DataAdapter da = new StreamDataAdapter(in);
170 in = new BufferedReader(new FileReader(file));
171 fillBinStats(in);
175 in.close();
213 * @param in object providing access to the data
216 public DataAdapter getAdapter(Object in) {
217 if (in instanceof BufferedReader) {
218 BufferedReader inputStream = (BufferedReader) in;
220 } else if (in instanceof double[]) {
221 double[] inputArray = (double[]) in;
226 in.getClass().getName(),
242 * @param in BufferedReader input stream
244 public StreamDataAdapter(BufferedReader in){
246 inputStream = in;
290 * @param in double[] array holding the data
292 public ArrayDataAdapter(double[] in){
294 inputArray = in;
320 * @param in object providing access to the data
323 private void fillBinStats(Object in) throws IOException {
338 // Filling data in binStats Array
340 DataAdapter da = aFactory.getAdapter(in);
378 // Start with a uniformly distributed random number in (0,1)
390 return stats.getMean(); // only one obs in bin
421 * statistics describing the values in each of the bins. The list is
455 * of [0,1] used in generating data from the empirical distribution.
462 * @return array of upper bounds of subintervals used in data generation