Custom Query (454 matches)
Results (34 - 36 of 454)
Ticket | Resolution | Summary | Owner | Reporter |
---|---|---|---|---|
#44 | fixed | create XY_DatasetAPI parent of DiscretizedFuncAPI that accepts scatter data | ||
Description |
E-mail from Ned, 09/02/2010: Kevin, I couldn't resist looking into this a bit. The jfreechart wrapper class we use is: org.opensha.commons.gui.plot.jfreechart.DiscretizedFunctionXYDataSet which takes a DiscretizedFuncList? (a list of DiscretizedFuncAPIs). The methods DiscretizedFunctionXYDataSet actually uses from DiscretizedFuncAPIs are: getX(int) getY(int) getDelta() (but with an if(obj instanceof EvenlyDiscretizedFunc?), so this should be OK; this is for histogram plotting) getName() getInfo() getNum() One thing DiscretizedFunctionXYDataSet assumes is that getX(0) is minimum value, but this can easily be swapped with getMinX(). I propose we define and XY_DatasetAPI that is a parent to DiscretizedFuncAPI. This would include all the current DiscretizedFuncAPI methods listed in blue below, but not those listed in red (as the latter ordering and non-duplicates on the x axis). Then we just need to change DiscretizedFunctionXYDataSet to take an XY_DatatsetList (which we'd have to define) rather than the DiscretizedFuncList?. We also need to change its getX(0) call to getMinX() as mentioned above. There are also all the classes used between org.opensha.sha.gui.infoTools.GraphiWindowAPI_Impl (the useful tool I mentioned below) and DiscretizedFunctionXYDataSet that would need to be changed (but I think just swapping DiscretizedFuncList? with XY_DatatsetList would do it. Of course I might be missing something here, so please check my math. Cheers, Ned DiscretizedFuncAPI
(to be included in XY_DatasetAPI)
|
|||
#45 | fixed | Fix getAveStrike in FaultTrace | ||
Description |
Currently the method getAveStrike() in FaultTrace has been hardcoded to throw this exception: new RuntimeException("This needs to be fixed for case where aximuths that cross the north direction (e.g., values of 10 & 350 average to 180"); Until this is addressed, we cannot determine the average strike for a fault trace. |
|||
#47 | fixed | Add opensha.org drupal code to opensha-www svn |