Ignore:
Timestamp:
10/25/11 13:52:10 (13 years ago)
Author:
neise
Message:
discriminator does now return vector<Region>
File:
1 edited

Legend:

Unmodified
Added
Removed
  • fact/tools/rootmacros/discriminator.h

    r12195 r12259  
     1// file: discriminator.h
    12
    2         #ifndef __DISCRIMINATOR_H
    3         #define __DISCRIMINATOR_H
     3#ifndef __DISCRIMINATOR_H
     4#define __DISCRIMINATOR_H
    45
    5         typedef struct
    6         {
    7                 int begin;
    8           int maxPos;
    9           int end;
    10           float maxVal;
    11         }
    12         DiscOut;
     6#include "Region.h"
     7
     8#include <vector>
     9
     10std::vector<Region> * discriminator(
     11        std::vector<float>& input,       // vector of floats, the discriminator acts on
     12    float thr = 5.,             // threshold
     13    bool clean = true,          // choose here, if the discriminator should already discard Regions, which are assumend to sit on the predessesors falling edge
     14    int fallingEdge = 100,      // number of slices, after the maximum, which should be discarded... 
     15    bool debug = false
     16);
     17
     18int cleanRegionsOnFallingEdge (
     19        std::vector<Region> &dest,
     20        std::vector<Region> &src,
     21    int fallingEdgeLen = 100,
     22    bool debug = false);
    1323       
    1424
    15         #endif
    16 
     25#endif
Note: See TracChangeset for help on using the changeset viewer.