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
↓ 1 callers
Method
has_converged
(&self, loss: f64, loss_previous: f64, tolerance: f64)
src/predict/glms/glm.rs:78
↓ 1 callers
Method
has_dispersion
(&self)
src/predict/glms/families.rs:18
↓ 1 callers
Function
interp1d_linear_unchecked
( x: &[f64], y: &[f64], tgt: &[f64], extrapolate: ExtrapolationMode, )
src/functions/interpolate.rs:42
↓ 1 callers
Method
into_iter
(self)
src/linalg/array/matrix.rs:623
↓ 1 callers
Method
is_square
Check whether the matrix is square.
src/linalg/array/matrix.rs:68
↓ 1 callers
Function
is_symmetric
(m: &[f64])
src/linalg/utils.rs:82
↓ 1 callers
Method
is_symmetric
Check whether the matrix is symmetric.
src/linalg/array/matrix.rs:79
↓ 1 callers
Function
logistic
Various mathematical functions commonly used in statistics. Calculates the standard [logistic function](https://en.wikipedia.org/wiki/Logistic_functio
src/functions/statistical.rs:4
↓ 1 callers
Function
logit
Calculates the [logit function](https://en.wikipedia.org/wiki/Logit)
src/functions/statistical.rs:9
↓ 1 callers
Function
logsumexp
Calculates the logarithm of the sum of the exponentials in a stable manner. Applies the [LogSumExp](https://en.wikipedia.org/wiki/LogSumExp) operator
src/linalg/utils.rs:546
↓ 1 callers
Method
mean
Calculates the mean of the Chi square distribution, which is the same as its degrees of freedom.
src/distributions/chi_squared.rs:71
↓ 1 callers
Method
optimize
Run the optimization algorithm, given a vector of parameters to optimize and a function which calculates the residuals.
src/optimize/sgd.rs:79
↓ 1 callers
Method
pdf
Calculates the probability density function for the given T distribution at `x`.
src/distributions/t.rs:53
↓ 1 callers
Method
penalized_deviance
(&self, y: &[f64], mu: &[f64], alpha: f64, coef: &[f64])
src/predict/glms/families.rs:139
↓ 1 callers
Method
predict_one
Given some data, predict the value for a single timestep ahead.
src/timeseries/autoregressive.rs:44
↓ 1 callers
Function
sample_mult
(lambda: f64)
src/distributions/poisson.rs:87
↓ 1 callers
Function
sample_ptrs
(lam: f64)
src/distributions/poisson.rs:99
↓ 1 callers
Function
sample_var
Calculates the sample variance from an array of data points in a numerically stable manner using the Welford algorithm.
src/statistics/moments.rs:56
↓ 1 callers
Method
set_alpha
(&mut self, alpha: f64)
src/distributions/gamma.rs:31
↓ 1 callers
Method
set_alpha
(&mut self, alpha: f64)
src/distributions/pareto.rs:23
↓ 1 callers
Method
set_alpha
(&mut self, alpha: f64)
src/distributions/beta.rs:35
↓ 1 callers
Method
set_beta
(&mut self, beta: f64)
src/distributions/gamma.rs:38
↓ 1 callers
Method
set_beta
(&mut self, beta: f64)
src/distributions/beta.rs:43
↓ 1 callers
Method
set_beta
(&mut self, beta: f64)
src/distributions/gumbel.rs:35
↓ 1 callers
Method
set_dof
(&mut self, dof: usize)
src/distributions/chi_squared.rs:24
↓ 1 callers
Method
set_dof
(&mut self, dof: f64)
src/distributions/t.rs:22
↓ 1 callers
Method
set_lambda
(&mut self, lambda: f64)
src/distributions/exponential.rs:28
↓ 1 callers
Method
set_lambda
(&mut self, lambda: f64)
src/distributions/poisson.rs:23
↓ 1 callers
Method
set_lower
(&mut self, lower: i64)
src/distributions/discreteuniform.rs:23
↓ 1 callers
Method
set_lower
(&mut self, lower: f64)
src/distributions/uniform.rs:24
↓ 1 callers
Method
set_minval
(&mut self, minval: f64)
src/distributions/pareto.rs:30
↓ 1 callers
Method
set_mu
(&mut self, mu: f64)
src/distributions/normal.rs:26
↓ 1 callers
Method
set_mu
(&mut self, mu: f64)
src/distributions/gumbel.rs:31
↓ 1 callers
Method
set_n
(&mut self, n: u64)
src/distributions/binomial.rs:23
↓ 1 callers
Method
set_p
(&mut self, p: f64)
src/distributions/bernoulli.rs:22
↓ 1 callers
Method
set_p
(&mut self, p: f64)
src/distributions/binomial.rs:27
↓ 1 callers
Method
set_sigma
(&mut self, sigma: f64)
src/distributions/normal.rs:30
↓ 1 callers
Method
set_upper
(&mut self, upper: i64)
src/distributions/discreteuniform.rs:30
↓ 1 callers
Method
set_upper
(&mut self, upper: f64)
src/distributions/uniform.rs:31
↓ 1 callers
Function
softmax
Calculates the softmax (the normalized exponential) function, which is a generalization of the logistic function to multiple dimensions. Takes in a v
src/functions/statistical.rs:43
↓ 1 callers
Function
solve_sys
Solves a system of linear scalar equations. `a` must represent a square matrix.
src/linalg/utils.rs:222
↓ 1 callers
Function
std
Calculates the standard deviation of an array of data points. This is the square root of the variance.
src/statistics/moments.rs:63
↓ 1 callers
Method
t_mut
Transpose the matrix in-place.
src/linalg/array/matrix.rs:418
↓ 1 callers
Function
toeplitz
Given a vector of length n, creates n stacked duplicates, resulting in a square [Toeplitz matrix](https://en.wikipedia.org/wiki/Toeplitz_matrix). This
src/linalg/utils.rs:488
↓ 1 callers
Function
vandermonde
Given some length m data x, create an nth order [Vandermonde matrix](https://en.wikipedia.org/wiki/Vandermonde_matrix).
src/linalg/utils.rs:473
↓ 1 callers
Method
variance
(&self, mu: &[f64])
src/predict/glms/families.rs:29
↓ 1 callers
Function
welford_mean
Calculates the mean of an array of data points using the Welford algorithm.
src/statistics/moments.rs:42
↓ 1 callers
Function
welford_update
An implementation of Welford's online algorithm, which is used for calculating statistics in a recurrent and stable manner. See https://en.wikipedia.o
src/statistics/moments.rs:10
Method
aic
Calculates the [Akaike information criterion](https://en.wikipedia.org/wiki/Akaike_information_criterion) for the model.
src/predict/glms/glm.rs:256
Method
apply_along_col
Apply a closure to every element in a row.
src/linalg/array/matrix.rs:346
Method
apply_along_row
Apply a closure to every element in a row. The closure should take a value and return the value to replace it with.
src/linalg/array/matrix.rs:338
Function
argmax
Returns the index of the largest element in the array.
src/statistics/order.rs:25
Function
argmin
Returns the index of the smallest element in the array.
src/statistics/order.rs:14
Method
bic
Calculates the [Bayesian information criterion](https://en.wikipedia.org/wiki/Bayesian_information_criterion) for the model.
src/predict/glms/glm.rs:263
Function
binom_coeff_alt
An alternative method for computing binomial coefficients. There is no significant difference between the compute time using the `binom_coeff` method
src/functions/combinatorial.rs:26
Function
binomial
(c: &mut Criterion)
benches/benchmark_distributions.rs:40
Function
boxcox
Calculates the one-parameter Box-Cox transformation with some power parameter `lambda`.
src/functions/statistical.rs:17
Function
boxcox_shifted
Calculates the two-parameter Box-Cox transformation with some power parameter `lambda` and some shift parameter `alpha`.
src/functions/statistical.rs:28
Function
calc_broadcast_shape
(m1: &Matrix, m2: &Matrix)
src/linalg/array/broadcast.rs:12
Method
cdf
TODO: make `cdf` a method of the `Continuous` trait.
src/distributions/normal.rs:38
Method
close_to
(&self, other: &Vector, tol: f64)
src/linalg/array/vec.rs:75
Method
close_to
Check whether a matrix is close to another matrix within some tolerance.
src/linalg/array/matrix.rs:97
Function
covariance
Calculates the covariance between two vectors x and y. This is a two-pass algorithm which centers the data before computing the covariance, which impr
src/statistics/covariance.rs:6
Function
criterion_binomial
(c: &mut Criterion)
benches/benchmark_functions.rs:16
Function
criterion_dot
(c: &mut Criterion)
benches/benchmark_linalg.rs:7
Function
criterion_hist_bins
(c: &mut Criterion)
benches/benchmark_statistics.rs:14
Function
criterion_invert
(c: &mut Criterion)
benches/benchmark_linalg.rs:171
Function
criterion_logsumexp
(c: &mut Criterion)
benches/benchmark_linalg.rs:21
Function
criterion_ludecomp
(c: &mut Criterion)
benches/benchmark_linalg.rs:152
Function
criterion_matmul
(c: &mut Criterion)
benches/benchmark_linalg.rs:180
Function
criterion_matmul_blocked
(c: &mut Criterion)
benches/benchmark_linalg.rs:200
Function
criterion_matrix_sum
(c: &mut Criterion)
benches/benchmark_linalg.rs:146
Function
criterion_mean
(c: &mut Criterion)
benches/benchmark_functions.rs:8
Function
criterion_mean
(c: &mut Criterion)
benches/benchmark_statistics.rs:6
Function
criterion_norm
(c: &mut Criterion)
benches/benchmark_linalg.rs:16
Function
criterion_solve
(c: &mut Criterion)
benches/benchmark_linalg.rs:159
Function
criterion_tsfuncs
(c: &mut Criterion)
benches/benchmark_timeseries.rs:4
Function
criterion_vops
(c: &mut Criterion)
benches/benchmark_linalg.rs:81
Function
criterion_vops_assign
(c: &mut Criterion)
benches/benchmark_linalg.rs:26
Function
criterion_xtx
(c: &mut Criterion)
benches/benchmark_linalg.rs:215
Method
data
Return a reference to the underlying Vector holding the data.
src/linalg/array/matrix.rs:426
Method
data_mut
Return a mutable reference to the underlying Vector holding the data.
src/linalg/array/matrix.rs:431
Method
default
()
src/optimize/lm.rs:59
Method
default
()
src/optimize/sgd.rs:66
Method
default
Uses the defaults recommended by Kingma and Ba 2014
src/optimize/adam.rs:76
Method
default
()
src/linalg/array/vec.rs:95
Method
default
()
src/linalg/array/matrix.rs:638
Method
default
()
src/distributions/normal.rs:44
Method
default
()
src/distributions/exponential.rs:38
Method
default
()
src/distributions/chi_squared.rs:32
Method
default
()
src/distributions/gamma.rs:48
Method
default
()
src/distributions/bernoulli.rs:32
Method
default
()
src/distributions/pareto.rs:40
Method
default
()
src/distributions/t.rs:30
Method
default
()
src/distributions/beta.rs:54
Method
default
()
src/distributions/gumbel.rs:45
Method
default
()
src/distributions/discreteuniform.rs:40
Method
default
()
src/distributions/poisson.rs:33
Method
default
()
src/distributions/uniform.rs:41
Method
default
()
src/distributions/binomial.rs:37
← previous
next →
101–200 of 442, ranked by callers