Commit 569c53c4 authored by Dimitar Tasev's avatar Dimitar Tasev
Browse files

Re #16959 refactored GetDetOffsetsMultiPeaks

parent aafa0ac8
......@@ -7,10 +7,6 @@
#include "MantidDataObjects/EventWorkspace.h"
#include "MantidDataObjects/TableWorkspace.h"
#include "MantidAPI/MatrixWorkspace_fwd.h"
#include <gsl/gsl_blas.h>
#include <gsl/gsl_multifit_nlin.h>
#include <gsl/gsl_multimin.h>
#include <gsl/gsl_statistics.h>
namespace Mantid {
namespace Algorithms {
......
......@@ -12,8 +12,6 @@
#include "MantidKernel/UnitFactory.h"
#include "MantidTestHelpers/WorkspaceCreationHelper.h"
using namespace Mantid::API;
using namespace Mantid::DataObjects;
using Mantid::Algorithms::GetDetOffsetsMultiPeaks;
......@@ -49,7 +47,7 @@ public:
Mantid::Kernel::UnitFactory::Instance().create("dSpacing");
const auto &X = WS->x(0);
auto &Y = WS->mutableY(0);
auto &E = WS->mutableE(0);
auto &E = WS->mutableE(0);
for (size_t i = 0; i < Y.size(); ++i) {
const double x = (X[i] + X[i + 1]) / 2;
Y[i] = 5.1 * exp(-0.5 * pow((x - 10) / 1.0, 2));
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment