npstat::GridAxis Class Reference
Detailed DescriptionInformation needed to define an axis of a rectangular grid. The distance between grid points can change from point to point. The UniformAxis class will be more efficient in representing equidistant grids. Constructor & Destructor Documentation◆ GridAxis() [1/2]
The number of grid coordinates provided must be at least 2. Coordinates will be sorted internally in the increasing order. ◆ GridAxis() [2/2]
Construct a simple unlabeled grid using explicit point coordinates. This grid will use linear interpolation (not log space). Member Function Documentation◆ classId()
Method related to "geners" I/O ◆ coords()
Basic accessor returning a parameter provided in the constructor ◆ getInterval()
This method returns the grid interval number and the weight of the point at the left side of the interval. The weight will be set to 1 if the given coordinate coincides with the grid point and will decay to 0 linearly as the coordinate moves towards the next point on the right. The coordinates below the leftmost grid point are mapped into the 0th interval with weight 1. The coordinates above the rightmost grid point are mapped into the last interval with weight 0 for the left point (it is expected that weight 1 will then be assigned to the right point). ◆ isClose()
Check for closeness of coordinates with another axis within the given relative tolerance ◆ linearInterval()
This method returns the grid interval number and the weight of the point at the left side of the interval. The weight will be set to 1 if the given coordinate coincides with the grid point and will decay to 0 linearly as the coordinate moves towards the next point on the right. The weight for the point on the right should be set to one minus the weight on the left. The coordinates outside of grid boundaries will result in weights which are less than zero or more than one. They will be calculated by linear extrapolation from the closest interval in the grid (i.e., leftmost or rightmost). ◆ nCoords()
Convenience accessor ◆ operator!=()
Logical negation of operator== ◆ operator==()
Compare two grids for equality ◆ setLabel()
Modify the axis label The documentation for this class was generated from the following file:
Generated by 1.9.1 |