From: Wouter Oosterbosch on 29 Jan 2010 11:03 Hey guys, I realize this might be a more general programming question, but it's worth a shot: suppose I want to write a class method that carries out a certain task, e.g. printing out interrater agreement for a piece of data. Usually these ratings are embedded in objects, and I figured writing it as a class method would be the most logical solution, and would enable me to later implement it in an OO database. Apart from that though, there are still other situations in which I want to calculate this interrater agreement. For example, the ratings can also be found in Excel files. This is less than ideal (Excel files wouldn't automatically contain some of the extra parameters I need, so I'd have to ask the user to manually input some data), but it would be nice and easy if my program could handle such cases, and allow users to be free in how they choose to store their data. In this case, is it best to write one class method that fully makes use of the OO advantages, and one seperate (but similar) function for the other cases? Or is there a more elegant way to do this? Thanks for reading! If you need more explanation, please say so. Wouter
|
Pages: 1 Prev: Hist3: specify bar colour using (x,y) range? Next: parameter estimation and ode45 |