Class RandomSamplesEx3

java.lang.Object
com.imsl.test.example.stat.RandomSamplesEx3

public class RandomSamplesEx3 extends Object

Selects a sample from a data set.

Consider the Wolfer Sunspot Data (Anderson 1971, p. 660) consisting of the number of sunspots observed each year from 1749 through 1924. In this example, the getSamples() method is used to randomly select 5 observations from the total 176 observations. The sampled indices are returned via getIndices().

See Also:
  • Constructor Details

    • RandomSamplesEx3

      public RandomSamplesEx3()
  • Method Details

    • main

      public static void main(String[] args)