Changeset 2730 for trunk/src/BufferedBisectionLocator.h
- Timestamp:
- 01/16/13 16:00:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/BufferedBisectionLocator.h
r2727 r2730 18 18 19 19 /** 20 * Implementation of locate operation by bisection search 20 * Implementation of locate operation by bisection search with 21 * some buffer. 21 22 * @author TakeshiNakazato 22 23 */ 23 24 class BufferedBisectionLocator : public Locator { 24 25 public: 25 BufferedBisectionLocator() {;}26 BufferedBisectionLocator( double *v, unsigned int n);26 // Default constructor. 27 BufferedBisectionLocator(); 27 28 29 // Construct with data 30 // @param[in] v pointer to input data. 31 // @param[in] n length of the data. 32 // @param[in] copystorage whether allocate internal memory or not. 33 // @see Locator::set() 34 BufferedBisectionLocator(double *v, unsigned int n, bool copystorage=true); 35 36 // Destructor. 28 37 virtual ~BufferedBisectionLocator(); 29 38 39 // Return right hand side index of location using bisection search. 40 // @param[in] x input value to be located. 41 // @return location as an index j. 42 // @see Locator::locate() 30 43 unsigned int locate(double x); 31 44 private: 45 46 // Previous location index. 32 47 unsigned int prev_; 33 48 };
Note: See TracChangeset
for help on using the changeset viewer.