| Home | Libraries | People | FAQ | More

## Struct pow

boost::histogram::axis::transform::pow — Pow transform for equidistant bins in pow-space.

## Synopsis

    // In header: <boost/histogram/axis/regular.hpp>

    struct pow {

      // public member functions
      explicit pow(double);
      pow() = default;
      template<typename T> auto forward(T) const;
      template<typename T> auto inverse(T) const;
      bool operator==(const pow &) const noexcept;
      template<typename Archive> void serialize(Archive &, unsigned);

      // public data members
      double power;  // power index
    };

## Description

### `pow` public member functions

1.     explicit pow(double p);

   Make transform with index p.

2.     pow() = default;

3.     template<typename T> auto forward(T x) const;

   Returns pow(x, power) of external value x.

4.     template<typename T> auto inverse(T x) const;

   Returns pow(x, 1/power) of external value x.

5.     bool operator==(const pow & o) const noexcept;

6.     template<typename Archive> void serialize(Archive & ar, unsigned);