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.
22 lines
555 B
22 lines
555 B
uniform highp float u_intensity;
|
|
|
|
varying vec2 v_extrude;
|
|
|
|
#pragma mapbox: define highp float weight
|
|
|
|
// Gaussian kernel coefficient: 1 / sqrt(2 * PI)
|
|
#define GAUSS_COEF 0.3989422804014327
|
|
|
|
void main() {
|
|
#pragma mapbox: initialize highp float weight
|
|
|
|
// Kernel density estimation with a Gaussian kernel of size 5x5
|
|
float d = -0.5 * 3.0 * 3.0 * dot(v_extrude, v_extrude);
|
|
float val = weight * u_intensity * GAUSS_COEF * exp(d);
|
|
|
|
gl_FragColor = vec4(val, 1.0, 1.0, 1.0);
|
|
|
|
#ifdef OVERDRAW_INSPECTOR
|
|
gl_FragColor = vec4(1.0);
|
|
#endif
|
|
}
|
|
|