Opened 14 years ago
Closed 14 years ago
#123 closed defect (fixed)
implement weighted list with editor
Reported by: | Kevin Milner | Owned by: | Kevin Milner |
---|---|---|---|
Priority: | major | Milestone: | OpenSHA 1.2 |
Component: | commons | Version: | |
Keywords: | Cc: |
Description
in order to complete #122 we need a weighted list object that can handle a list of an arbitrary objects (such as IMRs) and their weights. The weights should be enforced to add up to 1.
We'll also need a GUI editor, possibly with sliders, for editing these weights. This gets a little nasty because when you adjust one value, you have to also adjust the other values such that they will sum to 1.
Change History (5)
comment:1 Changed 14 years ago by
comment:3 Changed 14 years ago by
Milestone: | OpenSHA 1.1 → OpenSHA 1.2 |
---|---|
Status: | new → assigned |
moved to 1.2. I think my new solution will be more elegant than the old TreeBranchWeightsParameter?, and will be applicable to any sort of weighted list.
comment:4 Changed 14 years ago by
mostly implemented and tested, just waiting on XML saving/loading issues to be resolved to close the ticket.
alternatively, they could just be relative weights which would be a much simpler gui. they would have to be normalized to sum to 1 before calculation.