Published
Edited
Mar 4, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
/**
* Visszaadja a megadott kontrollpontokra illesztett Cardinal Spline-t.
* @param {Array} points A kontrollpontok tombje.
* @param {Number} tension A feszesseget meghatarozo ertek.
* @returns {Array} A görbepontokat tartalmazó tömb.
*/
function f_evaluateCardinalSpline(points, tension) {
let result = []
for (let i = 0; i < points.length - 3; ++i) {
result = result.concat(f_evaluateCardinalSplineSegment(points.slice(i, i + 4), tension))
}
return result;
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
/**
* Visszaadja a megadott kontrollpontokra illesztett zart Kochanek-Bartels Spline-t.
* @param {Array} points A kontrollpontok tombje.
* @param {Number} tension A feszesseget meghatarozo ertek.
* @param {Number} bias A bias erteke.
* @param {Number} continuity A continuity erteke.
* @returns {Array} A görbepontokat tartalmazó tömb.
*/
function f_evaluateClosedKochanekBartelsSpline(points, tension, bias, continuity) {
let result = []
for (let i = 0; i < points.length; i++) {
const segmentPoints = [
points[i],
points[(i + 1) % points.length],
points[(i + 2) % points.length],
points[(i + 3) % points.length]
]
result = result.concat(f_evaluateKochanekBartelsSplineSegment(segmentPoints, tension, bias, continuity))
}
return result
}
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more