<commit_before>//
//  TwoDimensionalGaussian.h
//  spin_wave_genie
//
//  Created by Hahn, <NAME>. on 5/21/14.
//
//

#ifndef __spin_wave_genie__TwoDimensionalGaussian__
#define __spin_wave_genie__TwoDimensionalGaussian__

#include <iostream>
#include <vector>
#include <deque>
#include "SpinWaveGenie/Genie/SpinWave.h"
#include "SpinWaveGenie/Plot/SpinWavePlot.h"
#include "SpinWaveGenie/Containers/Energies.h"
#include "SpinWaveGenie/Plot/EnergyResolutionFunction.h"

namespace SpinWaveGenie
{

struct TwoDimGaussian
{
  double a, b, c, tol;
  Vector3 direction;
};

class TwoDimensionResolutionFunction : public SpinWavePlot
{
public:
  TwoDimensionResolutionFunction(){};
  TwoDimensionResolutionFunction(TwoDimGaussian &info, const SpinWave &SW, Energies energies);
  TwoDimensionResolutionFunction(const TwoDimensionResolutionFunction &other) = default;
  std::vector<double> getCut(double kxIn, double kyIn, double kzIn);
  void setTolerance(double tol, int maxEvals = 100000);
  std::unique_ptr<SpinWavePlot> clone();
  const Cell &getCell() const;
  const Energies &getEnergies();
  void setEnergies(Energies energies);
  ~TwoDimensionResolutionFunction(){};

private:
  std::vector<double> calculateIntegrand(std::deque<double> &x);
  Energies energies;
  int maximumEvaluations;
  double tolerance;<commit_msg>fix unused parameter warning in TwoDimensionalGaussian.h<commit_after>//
//  TwoDimensionalGaussian.h
//  spin_wave_genie
//
//  Created by Hahn, <NAME>. on 5/21/14.
//
//

#ifndef __spin_wave_genie__TwoDimensionalGaussian__
#define __spin_wave_genie__TwoDimensionalGaussian__

#include <iostream>
#include <vector>
#include <deque>
#include "SpinWaveGenie/Genie/SpinWave.h"
#include "SpinWaveGenie/Plot/SpinWavePlot.h"
#include "SpinWaveGenie/Containers/Energies.h"
#include "SpinWaveGenie/Plot/EnergyResolutionFunction.h"

namespace SpinWaveGenie
{

struct TwoDimGaussian
{
  double a, b, c, tol;
  Vector3 direction;
};

class TwoDimensionResolutionFunction : public SpinWavePlot
{
public:
  TwoDimensionResolutionFunction(){};
  TwoDimensionResolutionFunction(TwoDimGaussian &info, const SpinWave &SW, Energies energies);
  TwoDimensionResolutionFunction(const TwoDimensionResolutionFunction & /*other*/) = default;
  std::vector<double> getCut(double kxIn, double kyIn, double kzIn);
  void setTolerance(double tol, int maxEvals = 100000);
  std::unique_ptr<SpinWavePlot> clone();
  const Cell &getCell() const;
  const Energies &getEnergies();
  void setEnergies(Energies energies);
  ~TwoDimensionResolutionFunction(){};

private:
  std::vector<double> calculateIntegrand(std::deque<double> &x);
  Energies energies;
  int maximumEvaluations;
  double tolerance;
{'fraction_non_alphanumeric': 0.10817843866171004, 'fraction_numerical': 0.008921933085501859, 'mean_word_length': 6.475, 'pattern_counts': {'":': 0, '<': 19, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3140923', 'n_tokens_mistral': 974, 'n_tokens_neox': 885, 'n_words': 186}