Changeset 2730 for trunk/src/HuntLocator.h
- Timestamp:
- 01/16/13 16:00:28 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/HuntLocator.h
r2727 r2730 23 23 class HuntLocator : public Locator { 24 24 public: 25 HuntLocator() {;}26 HuntLocator( double *v, unsigned int n);25 // Default constructor. 26 HuntLocator(); 27 27 28 // Construct with data 29 // @param[in] v pointer to input data. 30 // @param[in] n length of the data. 31 // @param[in] copystorage whether allocate internal memory or not. 32 // @see Locator::set() 33 HuntLocator(double *v, unsigned int n, bool copystorage=true); 34 35 // Destructor. 28 36 virtual ~HuntLocator(); 29 37 38 // Return right hand side index of location using bisection search 39 // plus hunt algorithm. 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 // Storage for previous result. 32 46 unsigned int prev_; 33 47 };
Note: See TracChangeset
for help on using the changeset viewer.