Determing if a point is inside an ellipsoid
이 질문을 팔로우합니다.
- 팔로우하는 게시물 피드에서 업데이트를 확인할 수 있습니다.
- 정보 수신 기본 설정에 따라 이메일을 받을 수 있습니다.
오류 발생
페이지가 변경되었기 때문에 동작을 완료할 수 없습니다. 업데이트된 상태를 보려면 페이지를 다시 불러오십시오.
이전 댓글 표시
0 개 추천
How can you determine if a given set of points is inside an off center rotated ellipsoid?
채택된 답변
David Sanchez
2013년 11월 25일
the point (x,y,z) will be inside the ellipsoid when
(x-xo)^2/a + (y-yo)^2/b +(z-zo)^2/c < 1
it will be outside the ellipsoid when
(x-xo)^2/a + (y-yo)^2/b +(z-zo)^2/c > 1
댓글 수: 7
Omair
2013년 11월 25일
How do i take the rotation into account?
The equation in matrix form for a rotated ellipse is
x'*R'*diag(1./[a,b])*R*x<=1
where R is a rotation matrix.
Omair, I don't understand. You must have the ellipsoid equation already. If you don't then what is there to check your points against? If you just have points and no equation at all, then of course you can find any arbitrary huge ellipsoid that will contain them all, but that's not useful. I'm not sure why you asked about rotation.
Omair
2013년 11월 25일
I have training data set to which I am trying to fit an ellipsoid. This data is distributed along the x=y=z line in 3 dimensions. I know my rotation matrix and i know my center of the ellipsoid. I want to check the goodness of fit by varying different parameters of the ellipsoid. My evaluation criteria for the goodness of the fit is true positives and false positives. I need to find how many of my sample training points lie inside the ellipsoid and how many of my disturbance points lie inside the ellipsoid.
One thing i tried was to apply the inverse of the rotation matrix to my data points and then check if the points lie inside the ellipsoid or not using the above given equation. Does that make sense?
You might try the FAQ though that might be for fitting an ellipsoid shell rather than solid - I don't know. How did you discover your rotation matrix if you don't even have the equation of the ellipse yet??? How are you determining the angle and length of the axes of the ellipsoid? And if you have those, then you have the equation.
Omair
2013년 11월 26일
I know that my data is distributed along the x=y=z line in the [0,300] for all three variables. The rotation matrix i derived using this information.
If anybody else stumbles upon this and has trouble with the equation not working:
((x-xo)/a)^2 + ((y-yo)/b)^2 +((z-zo)/c)^2 < 1
Taking the whole fractions squared instead of just the distance from the point to the ellipsoid center worked for me.
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Computational Geometry에 대해 자세히 알아보기
태그
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!웹사이트 선택
번역된 콘텐츠를 보고 지역별 이벤트와 혜택을 살펴보려면 웹사이트를 선택하십시오. 현재 계신 지역에 따라 다음 웹사이트를 권장합니다:
또한 다음 목록에서 웹사이트를 선택하실 수도 있습니다.
사이트 성능 최적화 방법
최고의 사이트 성능을 위해 중국 사이트(중국어 또는 영어)를 선택하십시오. 현재 계신 지역에서는 다른 국가의 MathWorks 사이트 방문이 최적화되지 않았습니다.
미주
- América Latina (Español)
- Canada (English)
- United States (English)
유럽
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
