Skip to content
Snippets Groups Projects
Commit 72a134e4 authored by Mikhail Svechnikov's avatar Mikhail Svechnikov
Browse files

MakeScale: add GenericScale

parent 32d9b690
No related branches found
No related tags found
2 merge requests!1847rebase on latest r21,!1825Unify API and Scale types
...@@ -49,6 +49,10 @@ std::vector<Bin1D> bounds2division(size_t N, double start, double end) ...@@ -49,6 +49,10 @@ std::vector<Bin1D> bounds2division(size_t N, double start, double end)
} // namespace } // namespace
Scale GenericScale(const std::string& name, const std::vector<double>& limits)
{
return Scale(name, limits2bins(limits));
}
Scale* newGenericScale(const std::string& name, const std::vector<double>& limits) Scale* newGenericScale(const std::string& name, const std::vector<double>& limits)
{ {
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
class Scale; class Scale;
Scale GenericScale(const std::string& name, const std::vector<double>& limits);
#ifndef SWIG #ifndef SWIG
Scale* newGenericScale(const std::string& name, const std::vector<double>& limits); Scale* newGenericScale(const std::string& name, const std::vector<double>& limits);
#endif // SWIG #endif // SWIG
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment