A curve may be reshaped by determining new locations for its control points that minimize some measure of the change in the curve, while meeting the specified editing constraints. In particular, the present invention provides gene expression profiles associated with prostate cancers. The handle is modified to produce a modified handle that identifies the set of listening endpoints.