Opened 13 years ago

Closed 13 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 13 years ago by Kevin Milner

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.

comment:2 Changed 13 years ago by Ned Field

I think what you're looking for is:

TreeBranchWeightsParameter?

comment:3 Changed 13 years ago by Kevin Milner

Milestone: OpenSHA 1.1OpenSHA 1.2
Status: newassigned

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 13 years ago by Kevin Milner

mostly implemented and tested, just waiting on XML saving/loading issues to be resolved to close the ticket.

comment:5 Changed 13 years ago by Kevin Milner

Resolution: fixed
Status: assignedclosed

done

Note: See TracTickets for help on using tickets.