Opened 15 years ago

Last modified 15 years ago

#139 new request

Combinations of Target objects — at Initial Version

Reported by: Peter Owned by: Peter
Priority: minor Milestone: yat 0.x+
Component: classifier Version: trunk
Keywords: Cc:

Description

The Target has got some binary functionality see e.g. set_binary() and binary(). So for example for a genomic Target with labels "deleted", "mutated", and "wild-type" Target can be set so binary answers the question "Is that sample wild-type?". Having more than one Targets say x and y, it would be useful to be able to create a new Target Z that is some sort of logical combination of X and Y. For example elemnt i in Z could be true if X AND Y are true in element i.

It could look something like

Target Z = combine(X,Y, Logic), where Logic is a binary_function<bool, bool, bool> such as std::logical_and<bool> or std::logical_or<bool>.

Or perhaps even make it a constructor in target class.

Change History (0)

Note: See TracTickets for help on using tickets.