Changes

Jump to navigation Jump to search
17 bytes removed ,  09:56, 1 February 2014
no edit summary
Line 12: Line 12:  
*In SAMPLING(ar,ty,n,lv), ar is the array of values which contains the population of values to find the sample.  
 
*In SAMPLING(ar,ty,n,lv), ar is the array of values which contains the population of values to find the sample.  
 
*ty is the Sampling type either Random or Periodic.  
 
*ty is the Sampling type either Random or Periodic.  
''RANDOM'':Here  we have to mention the random Number of Samples.  The number of values is taken from random positions in given array of values. A value can be selected more than once.  
+
*''RANDOM'':Here  we have to mention the random Number of Samples.  The number of values is taken from random positions in given array of values. A value can be selected more than once.  
''PERIODIC'': Here we have to mention  the Period n at which we want sampling to take place.  Sampling stops when the end of the input range is reached.
+
*''PERIODIC'': Here we have to mention  the Period n at which we want sampling to take place.  Sampling stops when the end of the input range is reached.
 
*n is  the number of random values that we want in the result.  
 
*n is  the number of random values that we want in the result.  
 
*Each value is drawn from a random position in the given array, and any number can be selected more than once.  
 
*Each value is drawn from a random position in the given array, and any number can be selected more than once.  
Line 21: Line 21:     
==Examples==
 
==Examples==
#'''Example 1'''
   
{| class="wikitable"
 
{| class="wikitable"
 
|+Spreadsheet
 
|+Spreadsheet
Line 34: Line 33:  
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
! !! INPUT !! OUTPUT
+
!! INPUT !! OUTPUT
 
|-
 
|-
 
|10 || 24
 
|10 || 24
writer
6,694

edits

Navigation menu