fredkneeland / DNA_Analysis

Java code for analyzing human dna
GNU General Public License v3.0
1 stars 3 forks source link

Add experiment summary class #9

Open fredkneeland opened 6 years ago

fredkneeland commented 6 years ago

Add a class with a static method that accepts a Map of Strings to integer. This will be for experiments that return an output of DNA strings verses the number of times they appear. It should output a summary of the results of the experiment. Format nicely.

i.e.

class ExperimentResults {
  public static void printBasicResults(Map<String, int> results) {
     // print out statistically relevant data i.e. 5 most and least common Strings
     // Average, Standard Deviation, Median and any others that seem relevant.
  }

  // any other helper methods
}
Neverbolt commented 6 years ago

I would do this, though what do you mean with average, standard deviation, etc.? Average... count of found strings or string length?

fredkneeland commented 6 years ago

so if the data was

{
    "AAT": 5,
    "ATT": 10,
    "GCC": 15,
}

I would want an average of 10, and a standard deviation of 3.3 etc...

rei2hu commented 6 years ago

I'd like to take a shot at this. However, I think the standard deviation should be around 4.0 while the standard error of the mean should be 3.3. I'd just like to make sure I have a good understanding of the formulas/statistics before I start writing a solution.