StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
https://doi.org/10.1109/TVCG.2020.3030352
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
976 B
36 lines
976 B
circumcenter
|
|
============
|
|
Computes the [circumcenter](http://en.wikipedia.org/wiki/Circumcenter) of a simplex. That is, it is the center of an [n-sphere](http://en.wikipedia.org/wiki/N-sphere) passing through n+1 points.
|
|
|
|
[](https://ci.testling.com/mikolalysenko/circumcenter)
|
|
|
|
[](http://travis-ci.org/mikolalysenko/circumcenter)
|
|
|
|
#Usage
|
|
|
|
First install using npm:
|
|
|
|
npm install circumcenter
|
|
|
|
Then you can call it like so:
|
|
|
|
```javascript
|
|
var circumcenter = require("circumcenter")
|
|
|
|
console.log(circumcenter([[0,0], [0,1], [1,1]]))
|
|
|
|
//Prints:
|
|
//
|
|
// [0.5, 0.5]
|
|
//
|
|
```
|
|
|
|
#### `require("circumcenter")(points)`
|
|
Computes the circumcenter of a collection of points
|
|
|
|
#### `require("circumcenter").barycentric(points)`
|
|
Computes the circumcenter in barycentric coordinates
|
|
|
|
Credits
|
|
=======
|
|
(c) 2013 Mikola Lysenko. MIT License
|
|
|