Mantid
Loading...
Searching...
No Matches
Functions
Mantid::Algorithms::SparseInstrument Namespace Reference

Functions

MANTID_ALGORITHMS_DLL HistogramData::Histogram bilinearInterpolateFromDetectorGrid (const double lat, const double lon, const API::MatrixWorkspace &ws, const std::vector< std::vector< boost::optional< size_t > > > &indices)
 
MANTID_ALGORITHMS_DLL std::unique_ptr< const Algorithms::DetectorGridDefinitioncreateDetectorGridDefinition (const API::MatrixWorkspace &modelWS, const size_t rows, const size_t columns)
 
MANTID_ALGORITHMS_DLL API::MatrixWorkspace_uptr createSparseWS (const API::MatrixWorkspace &modelWS, const Algorithms::DetectorGridDefinition &grid, const size_t wavelengthPoints)
 
MANTID_ALGORITHMS_DLL std::tuple< double, double, double, double > extremeAngles (const API::MatrixWorkspace &ws)
 Defines functions and utilities to create and deal with sparse instruments. More...
 
MANTID_ALGORITHMS_DLL std::tuple< double, double > extremeWavelengths (const API::MatrixWorkspace &ws)
 
MANTID_ALGORITHMS_DLL std::pair< double, double > geographicalAngles (const Kernel::V3D &p, const Geometry::ReferenceFrame &refFrame)
 
MANTID_ALGORITHMS_DLL double greatCircleDistance (const double lat1, const double long1, const double lat2, const double long2)
 
MANTID_ALGORITHMS_DLL HistogramData::Histogram interpolateFromDetectorGrid (const double lat, const double lon, const API::MatrixWorkspace &ws, const std::array< size_t, 4 > &indices)
 
MANTID_ALGORITHMS_DLL std::array< double, 4 > inverseDistanceWeights (const std::array< double, 4 > &distances)
 
MANTID_ALGORITHMS_DLL HistogramData::Histogram modelHistogram (const API::MatrixWorkspace &modelWS, const size_t wavelengthPoints)
 

Function Documentation

◆ bilinearInterpolateFromDetectorGrid()

MANTID_ALGORITHMS_DLL HistogramData::Histogram Mantid::Algorithms::SparseInstrument::bilinearInterpolateFromDetectorGrid ( const double  lat,
const double  lon,
const API::MatrixWorkspace ws,
const std::vector< std::vector< boost::optional< size_t > > > &  indices 
)

◆ createDetectorGridDefinition()

MANTID_ALGORITHMS_DLL std::unique_ptr< const Algorithms::DetectorGridDefinition > Mantid::Algorithms::SparseInstrument::createDetectorGridDefinition ( const API::MatrixWorkspace modelWS,
const size_t  rows,
const size_t  columns 
)

◆ createSparseWS()

MANTID_ALGORITHMS_DLL API::MatrixWorkspace_uptr Mantid::Algorithms::SparseInstrument::createSparseWS ( const API::MatrixWorkspace modelWS,
const Algorithms::DetectorGridDefinition grid,
const size_t  wavelengthPoints 
)

◆ extremeAngles()

MANTID_ALGORITHMS_DLL std::tuple< double, double, double, double > Mantid::Algorithms::SparseInstrument::extremeAngles ( const API::MatrixWorkspace ws)

Defines functions and utilities to create and deal with sparse instruments.

◆ extremeWavelengths()

MANTID_ALGORITHMS_DLL std::tuple< double, double > Mantid::Algorithms::SparseInstrument::extremeWavelengths ( const API::MatrixWorkspace ws)

◆ geographicalAngles()

MANTID_ALGORITHMS_DLL std::pair< double, double > Mantid::Algorithms::SparseInstrument::geographicalAngles ( const Kernel::V3D p,
const Geometry::ReferenceFrame refFrame 
)

◆ greatCircleDistance()

MANTID_ALGORITHMS_DLL double Mantid::Algorithms::SparseInstrument::greatCircleDistance ( const double  lat1,
const double  long1,
const double  lat2,
const double  long2 
)

◆ interpolateFromDetectorGrid()

MANTID_ALGORITHMS_DLL HistogramData::Histogram Mantid::Algorithms::SparseInstrument::interpolateFromDetectorGrid ( const double  lat,
const double  lon,
const API::MatrixWorkspace ws,
const std::array< size_t, 4 > &  indices 
)

◆ inverseDistanceWeights()

MANTID_ALGORITHMS_DLL std::array< double, 4 > Mantid::Algorithms::SparseInstrument::inverseDistanceWeights ( const std::array< double, 4 > &  distances)

◆ modelHistogram()

MANTID_ALGORITHMS_DLL HistogramData::Histogram Mantid::Algorithms::SparseInstrument::modelHistogram ( const API::MatrixWorkspace modelWS,
const size_t  wavelengthPoints 
)