You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if [[ "$DOCKER_IMAGE" == *"arm"* ]]; then sudo apt-get install -y -qq qemu-user-static git; fi
51
-
if [[ "$DOCKER_IMAGE" == *"arm64v8"* ]]; then export QEMU_VOLUME="-v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static"; fi #
51
+
if [[ "$DOCKER_IMAGE" == *"arm64v8"* ]]; then export QEMU_VOLUME="-v /usr/bin/qemu-aarch64-static:/usr/bin/qemu-aarch64-static"; export PLATFORM_OPTION="--platform linux/aarch64"; fi #
52
52
echo "Testing branch $TRAVIS_BRANCH of $REPOSITORY_NAME"
"returns the result of line/plane/hyperplane fitting (regression) on point-list with least squares. The result consists of the normal vector and the signed distance to the origin"
526
527
(let ((v^ (vector-mean point-list))
527
528
(point-length (length point-list))
528
529
delx x v eigen-res eigen-val eigen-vec min-lam min-vec)
@@ -543,10 +544,12 @@
543
544
))
544
545
545
546
(defunlms-estimate (res point-)
547
+
"returns the signed distance from the fitted line/plane/hyperplane to point-"
546
548
(+ (v. point- (car res)) (cadr res))
547
549
)
548
550
549
551
(defunlms-error (result point-list)
552
+
"returns the mean of the square of the distance from the fitted line/plane/hyperplane to each point in point-list"
550
553
(let ((ret-err 0) tmp-err)
551
554
(dolist (l point-list)
552
555
(setq tmp-err (lms-estimate result l))
@@ -555,13 +558,14 @@
555
558
(/ ret-err (length point-list))
556
559
))
557
560
558
-
;; choose num points randomly and apply lms to find the souliton with smallest errors
559
-
;; to use ransac ransac
561
+
;; choose num points randomly and apply lms to find the solution with the smallest error
562
+
;; to use ransac
560
563
;; :lmeds-error-func -> set to ransac-error
561
564
;; :ransac-threshold err^2 (square of the distance from the plane)
"returns the result of line/plane/hyperplane fitting (regression) on point-list with LMedS. The result consists of the normal vector and the signed distance to the origin"
565
569
(let (point-num r result result-list error-list iter
0 commit comments