Skip to content

shapeworks::ParticleSystemEvaluation

Public Functions

Name
ParticleSystemEvaluation(const std::vector< std::string > & paths)
Initialize particle system from a list of paths to particle files.
ParticleSystemEvaluation(const Eigen::MatrixXd & matrix, int num_values_per_particle =3)
Initialize particle system from eigen matrix (rows=dimensions, cols=num_samples)
const Eigen::MatrixXd & get_matrix() const
Get the matrix representation of the particle system.
int get_num_values_per_particle() const
Get the number of values for each particle (e.g. 3 for x/y/z, 4 for x/y/z/scalar)
const std::vector< std::string > & get_paths() const
Get the paths to the particle files.
long num_samples() const
Number of samples.
long num_dims() const
Dimensions (e.g. x/y/z * number of particles)
bool exact_compare(const ParticleSystemEvaluation & other) const
Perform an exact comparison of two particle systems.
bool evaluation_compare(const ParticleSystemEvaluation & other) const
Perform an evaluation comparison of two particle systems.
bool read_particle_file(std::string filename, Eigen::VectorXd & points)
Read a particle file into an Eigen vector.

Friends

Name
struct SharedCommandData

Public Functions Documentation

function ParticleSystemEvaluation

explicit ParticleSystemEvaluation(
    const std::vector< std::string > & paths
)

Initialize particle system from a list of paths to particle files.

function ParticleSystemEvaluation

explicit ParticleSystemEvaluation(
    const Eigen::MatrixXd & matrix,
    int num_values_per_particle =3
)

Initialize particle system from eigen matrix (rows=dimensions, cols=num_samples)

function get_matrix

inline const Eigen::MatrixXd & get_matrix() const

Get the matrix representation of the particle system.

function get_num_values_per_particle

inline int get_num_values_per_particle() const

Get the number of values for each particle (e.g. 3 for x/y/z, 4 for x/y/z/scalar)

function get_paths

inline const std::vector< std::string > & get_paths() const

Get the paths to the particle files.

function num_samples

inline long num_samples() const

Number of samples.

function num_dims

inline long num_dims() const

Dimensions (e.g. x/y/z * number of particles)

function exact_compare

bool exact_compare(
    const ParticleSystemEvaluation & other
) const

Perform an exact comparison of two particle systems.

function evaluation_compare

bool evaluation_compare(
    const ParticleSystemEvaluation & other
) const

Perform an evaluation comparison of two particle systems.

function read_particle_file

static bool read_particle_file(
    std::string filename,
    Eigen::VectorXd & points
)

Read a particle file into an Eigen vector.

Friends

friend SharedCommandData

friend struct SharedCommandData(
    SharedCommandData 
);

Updated on 2024-05-15 at 19:58:56 +0000