Home | History | Annotate | Download | only in src

Lines Matching refs:dat

35   // Create a sample of value dat and weight 1
36 explicit Stat1(const VType &dat) {
37 sum_ = dat;
38 sum_squares_ = Sqr(dat);
49 // Create a sample of value dat and weight w
50 Stat1(const VType &dat, const NumType &w) {
51 sum_ = w * dat;
52 sum_squares_ = w * Sqr(dat);
150 static inline SType Sqr(const SType &dat) {
151 return dat * dat;
155 static inline Vector2<SType> Sqr(const Vector2<SType> &dat) {
156 return dat.MulComponents(dat);
160 static inline Vector3<SType> Sqr(const Vector3<SType> &dat) {
161 return dat.MulComponents(dat);
165 static inline Vector4<SType> Sqr(const Vector4<SType> &dat) {
166 return dat.MulComponents(dat);
172 static inline SType Sqrt(const SType &dat) {
174 if (dat < 0) return 0;
175 return sqrt(dat);
179 static inline Vector2<SType> Sqrt(const Vector2<SType> &dat) {
181 return Max(dat, Vector2<SType>()).Sqrt();
185 static inline Vector3<SType> Sqrt(const Vector3<SType> &dat) {
187 return Max(dat, Vector3<SType>()).Sqrt();
191 static inline Vector4<SType> Sqrt(const Vector4<SType> &dat) {
193 return Max(dat, Vector4<SType>()).Sqrt();
215 // Create a sample of value dat and weight 1
216 explicit Stat1MinMax(const VType &dat) : Stat1<VType, NumType>(dat) {
217 max_ = dat;
218 min_ = dat;
228 // Create a sample of value dat and weight w
229 Stat1MinMax(const VType &dat, const NumType &w)
230 : Stat1<VType, NumType>(dat, w) {
231 max_ = dat;
232 min_ = dat;