statistics.hh (6001:00251eb95de7) statistics.hh (6002:7d75f1a525db)
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 2481 unchanged lines hidden (view full) ---

2490 */
2491 VectorDistribution &
2492 init(size_type size, Counter min, Counter max, Counter bkt)
2493 {
2494 DistStor::Params *params = new DistStor::Params;
2495 params->min = min;
2496 params->max = max;
2497 params->bucket_size = bkt;
1/*
2 * Copyright (c) 2003-2005 The Regents of The University of Michigan
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;

--- 2481 unchanged lines hidden (view full) ---

2490 */
2491 VectorDistribution &
2492 init(size_type size, Counter min, Counter max, Counter bkt)
2493 {
2494 DistStor::Params *params = new DistStor::Params;
2495 params->min = min;
2496 params->max = max;
2497 params->bucket_size = bkt;
2498 params->buckets = rint((max - min) / bkt + 1.0);
2498 params->buckets = (size_type)rint((max - min) / bkt + 1.0);
2499 this->setParams(params);
2500 this->doInit(size);
2501 return this->self();
2502 }
2503};
2504
2505/**
2506 * This is a vector of StandardDeviation stats.

--- 424 unchanged lines hidden ---
2499 this->setParams(params);
2500 this->doInit(size);
2501 return this->self();
2502 }
2503};
2504
2505/**
2506 * This is a vector of StandardDeviation stats.

--- 424 unchanged lines hidden ---