C# 2.0 (.NET 2005--Whidbey) supports generics

  • Could make DataContainer use <T>
  • DataSet would add its row name functionality to DataContainer<double>
  • Score would add its score generation to DataContainer<double>
  • InformationSet would be DataContainer<string>

DataContainer

  1. Change from column-major format to row-major format
  2. Change rows to double[] (from ArrayList)
  3. Change column names to static array
  4. Add resize/initialize functionality
  5. Update NumCols property
  6. Update Get/SetDataObject
  7. Update Add/RemoveColumn
    • Resize when needed
    • Shift empty columns
  8. Update RemoveColumns
    • Shift empty columns
  9. Update Add/RemoveRow
  10. Update Merge/Append
  11. Update Trim
    • Remove all unused columns

DataSet

  1. Update Load & Save
  2. Update Get/SetDataPoint
  3. Update Merge/Append

Score

  1. Update GenerateScores
    • Resize to the number of columns needed
  2. Update Load & Save

InformationSet

  1. Refactor into a new class that is not a DataContainer

Form1

  1. Resize Scores to the total number of columns needed first

Edit | Attach | Print version | History: r8 | r4 < r3 < r2 < r1 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r3 - 04 Nov 2004, WillGray
 

This site is powered by FoswikiCopyright © 2013-2022 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki? Send feedback