Perl random number generator -- 2

Script will generate a table of data and a log file of activity.

Input parameters:

r rows

s class size

p probability of difference

c1m class 1 mean

c1sd class 1 standard deviation

c2m class2 mean

c2sd class2 standard deviation

1. Script will generate a csv output table with 'r' rows and 'c' columns composed of two classes of size 's'. For example if s = 10, then there are 20 columns. Rows will be labeled r1, r2, r3,... and columns labeled c1, c2, c3...

2. For each row the script will calculate the probability that there is a difference in classes. For example, if p = 0.01 there is a 1 percent chance that the classes in a particular row will have different scores.

3. If the classes for a row are found NOT to have different scores, the scores of each member will be calculated randomly according to a normal distribution with parameters c1m and c1sd.

4. If the classes for a row ARE found to have a different score, the scores of classes will be randomly distributed according normal distributions c1m/c1sd and c2m/c2sd. Furthermore, the identity of this row will be written to a separate log file.

Compétences : Perl

en voir plus : random distributions, n is a number, generator log, C3, c1, generate random number, class log found, table perl, perl table, probability data, normal distribution scores, random data, csv data generator, scores normal distribution, probability scores, perl log, perl output, output table, perl script input, generator csv file, data separate columns rows, standard deviation example, class activity, number input, normal distribution

Concernant l'employeur :
( 64 commentaires ) Watertown, United States

Nº du projet : #5735379