Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] A mistake in linear_least_squares_fitting_3?

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] A mistake in linear_least_squares_fitting_3?


Chronological Thread 
  • From: Pierre Alliez <>
  • To:
  • Subject: Re: [cgal-discuss] A mistake in linear_least_squares_fitting_3?
  • Date: Mon, 23 Feb 2009 11:12:23 +0100
  • Organization: INRIA

hello,

It sounds good with "principal_component_analysis_2 resp _3"
with type of output iterator to std::pair<FT,Vector_2 resp _3>

I add this on my todo list for PCA.

Pierre

I think the interface could be like this:

void PCA_d( InputIterator first,
InputIterator beyond,
OutputIterator it,
typename K::Point_d& centroid,
K k,
Tag tag);

Here d can be 2 or 3. It just replace the Line_d or Plane_d with an
output iterator.





Archive powered by MHonArc 2.6.16.

Top of Page