Incorrect domain of `t` used in `stats/base/dists/normal/mgf` across benchmark, test and examples
Los mantenedores suelen responder en 1 día
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 72/100
- Tipo de issue
- Error
- Claridad
- Bien especificado
- Estado de actividad
- Tranquilo
- Stack tecnológico
- c, javascript, julia
- Área
- documentation, testing
Línea de trabajo
Revisa los generadores y ejemplos de stats/base/dists/normal/mgf/benchmark/benchmark.js, benchmark/benchmark.native.js, examples/index.js, examples/c/example.c, test/fixtures/julia/runner.jl y README.md; compáralos con el benchmark de C existente. Actualiza las entradas indicadas para que los valores negativos válidos de t estén cubiertos de forma coherente y, después, ejecuta las pruebas de normal/mgf e inspecciona los ejemplos y benchmarks.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
For the mgf function in normal distribution mgf( t, mu, sigma) t is allowed to take any value within (-inf, +inf) but in the test, benchmarks and examples the domain used is [0, +inf) except the C benchmark file.
- For C benchmark in
stats/base/dists/normal/mgf/benchmark/c/benchmark.cat line 105 the domain oftis correct.
for ( i = 0; i < 100; i++ ) {
t[ i ] = random_uniform( -100.0, 100.0 );
- For JS benchmarks in
stats/base/dists/normal/mgf/benchmark/benchmark.jsat line 76, line 45 andstats/base/dists/normal/mgf/benchmark/benchmark.native.jsat line 54 the domain oftis[0,1)
t = uniform( 100, 0.0, 1.0, {
'dtype': 'float64'
});
- For both C and JS examples in
stats/base/dists/normal/mgf/examples/index.jsat line 30 the domain is[0,10)and instats/base/dists/normal/mgf/examples/c/example.cat line 37 the domain is[0,1)
JS file
var t = uniform( 10, 0.0, 10.0, opts );
C file
t = random_uniform( 0.0, 1.0 );
- For the Julia test fixture runner in
stats/base/dists/normal/mgf/test/fixtures/julia/runner.jlat line 74, line 80 and line 86 the valuex(which corresponds tot) is generated only from[0, +inf), missing coverage of negative values which are valid inputs.
x = rand( 1000 ) .* 20.0;
...
x = rand( 1000 ) .* 20.0;
...
x = rand( 1000 ) .* 10.0;
- For the README.md examples in
stats/base/dists/normal/mgf/README.mdat line 142 the JS example uses[0,10)and at line 233 the C example uses[0,1)for the domain oft.
JS example
var t = uniform( 10, 0.0, 10.0, opts );
C example
t = random_uniform( 0.0, 1.0 );
- Lenguaje dominante
- JavaScript
- Estrellas
- 6k
- Forks
- 1.3k
- Merge medio
- 1 d 10 h
- PR fusionados (30 d)
- 481
Preparar el entorno
Inicia el contenedor de desarrollo del proyecto en tu navegador, con tu propia cuenta de GitHub.
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de stdlib-js/stdlib
-
Fix JavaScript lint errorsPosiblemente ocupada @Devansh-18155 la tomó hace 2 días. AbiertoGood First Issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
stdlib-js/stdlib#15970 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Fix JavaScript lint errorsPosiblemente ocupada @lb1192176991-lab la tomó hace 7 días. AbiertoGood First Issue
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
stdlib-js/stdlib#15831 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
`@stdlib/string/base/percent-encode` produces malformed encoding and silently drops charactersPosiblemente ocupada @barbierajput378-pixel la tomó hace 12 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
stdlib-js/stdlib#15595 · 6 comentarios ·
Los mantenedores suelen responder en 1 día
-
[Bug]: kumaraswamy/kurtosis returns non-excess kurtosis (missing −3)Posiblemente ocupada @Planeshifter la tomó hace 12 días. AbiertoBug Statistics
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
stdlib-js/stdlib#15461 · 1 comentario · 1 asignado ·
Los mantenedores suelen responder en 1 día
-
[Bug]: rayleigh/mgf returns wrong values due to misplaced parenthesisPosiblemente ocupada @anandkaranubc la tomó hace 14 días. AbiertoBug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
stdlib-js/stdlib#15456 · 6 comentarios · 1 asignado ·
Los mantenedores suelen responder en 1 día
Todos los issues de stdlib-js/stdlib
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 72/100
yjh051108/dsh-routing-suite#216 ·
-
[Bug] Completion info popup (.cm-completionInfo) ignores the configured editor fontPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abiertobug user-priority/P2
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
t8y2/dbx#11718 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
cost-tracker: claude-opus-5-5 and claude-haiku-5-5 fall into previous-generation rate buckets (Haiku 5.5 overestimated 10x)Posiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 4 días
-
bug confirmed perf
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
videojs/video.js#9400 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
agent/scanner bug hive/hosted-available-lke648397-260827-5n31
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día