Skip to content

does Eliminate guarantee stable elimination every time? #26

@xarthurx

Description

@xarthurx
	cy::WeightedSampleElimination<cy::Vec3d, double, 3> wse;
	std::vector<cy::Vec3d> outputPoints(n);

	//! Important!
	// d_max is used to define the sampling dist param based on sampling area
	float d_max = 2 * wse.GetMaxPoissonDiskRadius(2, outputPoints.size(), area);

	// 3D points, sampling in 2D plane
	wse.Eliminate(inputPoints.data(), inputPoints.size(), outputPoints.data(),
		outputPoints.size(), false, d_max, 2);

I use this piece of code to do elimination sampling. After reading the source code, it is still not clear to me whether this process is random/time-dependent or not -- with the same input points and input variables, does the Eliminate function always returns the same results?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions