Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/al-jshen/compute
/ functions
Functions
442 in github.com/al-jshen/compute
⨍
Functions
442
◇
Types & classes
42
Function
poisson
(c: &mut Criterion)
benches/benchmark_distributions.rs:31
Method
predict
Returns `c0 + c[1] * x + c[2] * x^2 ... + cn + x^n`, where `c[i]` are the coefficients of the polynomial regressor, and `x` is some vector of explanat
src/predict/polynomial.rs:29
Function
prod
Calculates the product of a vector.
src/linalg/utils.rs:563
Function
quad5
Integrate a function `f` from `a` to `b` using the [Gauss-Legendre quadrature method](https://en.wikipedia.org/wiki/Gaussian_quadrature) with 5 points
src/integrate/functions.rs:79
Method
reshape
Reshape the matrix. A size of `-1` in either the rows or the columns means that the size for that dimension will be automatically determined if possib
src/linalg/array/matrix.rs:317
Function
romberg
Integrate a function `f` from `a` to `b` using the [Romberg method](https://en.wikipedia.org/wiki/Romberg%27s_method), stopping after either sequentia
src/integrate/functions.rs:18
Function
rosenbrock
(p: &[Var<'a>], d: &[&[f64]])
src/optimize/adam.rs:199
Function
rotation_matrix_ccw
Returns a 3D counter-clockwise rotation matrix along the `axis` axis (either X, Y, or Z) with a given angle in radians. # Remarks These are counter-c
src/linalg/rotations.rs:61
Function
rotation_matrix_cw
Returns a 3D clockwise rotation matrix along the `axis` axis (either X, Y, or Z) with a given angle in radians. # Remarks These are clockwise rotatio
src/linalg/rotations.rs:16
Method
sample
Sample from the given Normal distribution.
src/distributions/normal.rs:52
Method
sample
Samples from the given Exponential distribution. # Remarks Uses the [inverse transform sampling](https://en.wikipedia.org/wiki/Inverse_transform_samp
src/distributions/exponential.rs:50
Method
sample
Samples from the given Chi square distribution.
src/distributions/chi_squared.rs:40
Method
sample
Samples from the given Gamma distribution. # Remarks Uses the algorithm from Marsaglia and Tsang 2000. Applies the squeeze method and has nearly cons
src/distributions/gamma.rs:60
Method
sample
Samples from the given Bernoulli distribution.
src/distributions/bernoulli.rs:40
Method
sample
Samples from the given Pareto distribution using inverse transform sampling.
src/distributions/pareto.rs:48
Method
sample
Samples from the given Beta distribution using the Gamma distribution.
src/distributions/beta.rs:62
Method
sample
(&self)
src/distributions/multivariatenormal.rs:54
Method
sample
Samples from the given Gumbel distribution.
src/distributions/gumbel.rs:53
Method
sample
Samples from the given discrete uniform distribution.
src/distributions/discreteuniform.rs:48
Method
sample
Samples from the given Poisson distribution. For `lambda < 10.0`, this is done with the direct (multiplication) method, and for `lambda >= 10.0`, this
src/distributions/poisson.rs:42
Method
sample
Samples from the given Uniform distribution.
src/distributions/uniform.rs:49
Function
sample_covariance
Calculates the sample covariance between two vectors x and y. This is a two-pass algorithm which centers the data before computing the covariance, whi
src/statistics/covariance.rs:22
Function
sample_covariance_onepass
Calculates the covariance between two vectors x and y. This is a one-pass algorithm which shifts the data by the first element in each vector before c
src/statistics/covariance.rs:38
Function
sample_covariance_online
Calculates the covariance between two vectors x and y. This is a stable one-pass online algorithm. See <https://en.wikipedia.org/wiki/Algorithms_for_c
src/statistics/covariance.rs:50
Method
sample_n
Generate a matrix of samples, where each row in the matrix is a random sample from the given distribution.
src/distributions/mod.rs:49
Function
sample_std
Calculates the sample standard deviation of an array of data points. This is the square root of the sample variance.
src/statistics/moments.rs:69
Method
score
Make some new predictions and calculate the score of those predictions based on known responses.
src/predict/glms/glm.rs:314
Method
set_coef
Set the model coefficients.
src/predict/glms/glm.rs:57
Method
set_offset
Set the offsets (usually used in Poisson regression models).
src/predict/glms/glm.rs:69
Method
set_penalty
Set the L2 (ridge regression) regularization strength.
src/predict/glms/glm.rs:45
Method
set_stepsize
(&mut self, stepsize: f64)
src/optimize/sgd.rs:59
Method
set_tolerance
Set the convergence tolerance.
src/predict/glms/glm.rs:51
Method
set_weights
Set the sample weights (usually measurement errors).
src/predict/glms/glm.rs:63
Function
shuffle
Shuffle an array.
src/validation/resample.rs:37
Function
shuffle_two
Shuffle two arrays. The same shuffling is applied to both arrays. That is, a pair (x_i, y_i) will still be paired together as (x_j, y_j) after shuffli
src/validation/resample.rs:49
Method
sort
(&mut self)
src/linalg/array/vec.rs:48
Method
sorted
(&self)
src/linalg/array/vec.rs:52
Function
t
(c: &mut Criterion)
benches/benchmark_distributions.rs:49
Function
test_acf_acovf
()
src/timeseries/functions.rs:45
Function
test_adam_rosenbrock
#[ignore]
src/optimize/adam.rs:194
Function
test_adam_slr
()
src/optimize/adam.rs:152
Function
test_ar_model
()
src/timeseries/autoregressive.rs:91
Function
test_argmax
()
src/statistics/order.rs:134
Function
test_argmin
()
src/statistics/order.rs:72
Function
test_bernoulli
()
src/distributions/bernoulli.rs:100
Function
test_beta
()
src/functions/gamma.rs:82
Function
test_binom_methods
()
src/functions/combinatorial.rs:38
Function
test_binom_pascal
()
src/functions/combinatorial.rs:54
Function
test_bootstrap_moments
()
src/validation/resample.rs:79
Function
test_bootstrap_range
()
src/validation/resample.rs:69
Function
test_broadcast_1
()
src/linalg/array/broadcast.rs:184
Function
test_broadcast_2
()
src/linalg/array/broadcast.rs:241
Function
test_broadcast_3
()
src/linalg/array/broadcast.rs:330
Function
test_broadcast_4
()
src/linalg/array/broadcast.rs:342
Function
test_cdf
()
src/distributions/normal.rs:427
Function
test_cholesky
()
src/linalg/decomposition/cholesky.rs:49
Function
test_cholesky
()
src/linalg/array/matrix.rs:985
Function
test_cholesky_solve
()
src/linalg/decomposition/cholesky.rs:92
Function
test_covariance
()
src/statistics/covariance.rs:75
Function
test_digamma
()
src/functions/gamma.rs:92
Function
test_erf
()
src/functions/statistical.rs:129
Function
test_fits
()
src/predict/polynomial.rs:79
Function
test_gamma
()
src/functions/gamma.rs:73
Function
test_glm_logistic
()
src/predict/glms/glm.rs:327
Function
test_hist_bin_centers
()
src/statistics/hist.rs:24
Function
test_integrators
()
src/integrate/functions.rs:116
Function
test_interp1d_linear_1
()
src/functions/interpolate.rs:128
Function
test_interp1d_linear_2
()
src/functions/interpolate.rs:146
Function
test_invert
()
src/linalg/utils.rs:634
Function
test_jackknife_mean
()
src/validation/resample.rs:101
Function
test_jackknife_size
()
src/validation/resample.rs:92
Function
test_lbfgs
()
src/optimize/lbfgs.rs:18
Function
test_linspace
()
src/linalg/utils.rs:747
Function
test_logistic
()
src/functions/statistical.rs:78
Function
test_logit
()
src/functions/statistical.rs:96
Function
test_lu
()
src/linalg/decomposition/lu.rs:88
Function
test_mat_vec_ops
()
src/linalg/array/matrix.rs:916
Function
test_matmul
()
src/linalg/utils.rs:680
Function
test_matrix_argminmax
()
src/linalg/array/matrix.rs:1030
Function
test_max
()
src/statistics/order.rs:103
Function
test_mean
()
src/statistics/moments.rs:79
Function
test_min
()
src/statistics/order.rs:41
Function
test_moments
()
src/distributions/normal.rs:416
Function
test_moments
()
src/distributions/exponential.rs:101
Function
test_moments
()
src/distributions/chi_squared.rs:92
Function
test_moments
()
src/distributions/gamma.rs:126
Function
test_moments
()
src/distributions/pareto.rs:106
Function
test_moments
()
src/distributions/t.rs:100
Function
test_moments
()
src/distributions/beta.rs:113
Function
test_moments
()
src/distributions/poisson.rs:133
Function
test_moments
()
src/distributions/binomial.rs:299
Function
test_mvn_pdf
()
src/distributions/multivariatenormal.rs:122
Function
test_sample_var
()
src/statistics/moments.rs:169
Function
test_sgd_slr
()
src/optimize/sgd.rs:149
Function
test_slr
()
src/predict/polynomial.rs:68
Function
test_softmax
()
src/functions/statistical.rs:116
Function
test_solve
()
src/linalg/utils.rs:717
Function
test_std
()
src/statistics/moments.rs:199
Function
test_symmetric
()
src/linalg/utils.rs:823
Function
test_trapezoid
()
src/integrate/samples.rs:27
← previous
next →
301–400 of 442, ranked by callers