SimDivFilters.rdSimDivPickers.MaxMinPicker

Package SimDivFilters :: Module rdSimDivPickers :: Class MaxMinPicker |
[hide private]
[frames] | no frames]

# Class MaxMinPicker

     object --+
              |
    ??.instance --+
                  |
                 MaxMinPicker

    A class for diversity picking of items using the MaxMin Algorithm

Instance Methods | [hide private]
LazyPick(...) Pick a subset of items from a pool of items using the MaxMin Algorithm Ashton, M. |
Pick(...) Pick a subset of items from a pool of items using the MaxMin Algorithm Ashton, M. |
__init__(...) C++ signature:... |
Inherited from `unreachable.instance`: `__new__` Inherited from `object`: `__delattr__`, `__getattribute__`, `__hash__`, `__reduce__`, `__reduce_ex__`, `__repr__`, `__setattr__`, `__str__`

Class Variables | [hide private]
| __instance_size__ = `12`

Properties | [hide private]
Inherited from `object`: `__class__`

Method Details | [hide private]

### LazyPick(...) |
    Pick a subset of items from a pool of items using the MaxMin Algorithm
    Ashton, M. et. al., Quant. Struct.-Act. Relat., 21 (2002), 598-604
    ARGUMENTS:

      - distFunc: a function that should take two indices and return the
                  distance between those two points.
                  NOTE: the implementation caches distance values, so the
                  client code does not need to do so; indeed, it should not.
      - poolSize: number of items in the pool
      - pickSize: number of items to pick from the pool
      - firstPicks: (optional) the first items to be picked (seeds the list)

    C++ signature:
        LazyPick(RDPickers::MaxMinPicker* self, boost::python::api::object distFunc, int poolSize, int pickSize, boost::python::api::object firstPicks=()) -> std::vector<int, std::allocator<int> >

### Pick(...) |
    Pick a subset of items from a pool of items using the MaxMin Algorithm
    Ashton, M. et. al., Quant. Struct.-Act. Relat., 21 (2002), 598-604

    ARGUMENTS:
      - distMat: 1D distance matrix (only the lower triangle elements)
      - poolSize: number of items in the pool
      - pickSize: number of items to pick from the pool
      - firstPicks: (optional) the first items to be picked (seeds the list)

    C++ signature:
        Pick(RDPickers::MaxMinPicker* self, boost::python::numeric::array {lvalue} distMat, int poolSize, int pickSize, boost::python::api::object firstPicks=()) -> std::vector<int, std::allocator<int> >

### __init__(...) (Constructor) |
    C++ signature:
    __init__(_object*) -> void*
Overrides: object.__init__