Questions tagged as 'matriz'

2
answers

How to count the objects in the image with PHP?

The original photo of the beans is this: Decreasetheresolutionofthephoto,Ialreadyappliedafiltertobeingrayscaleandincreasedthecontrasttothemaximumtobecomeblackandwhite.ThenIexaminedthecolorofeachpixelandmountedanarrayarray.IfIloopoverthisarra...
asked by 11.02.2017 / 01:53
2
answers

What is the difference between array and array?

in>?     
asked by 28.08.2017 / 18:59
2
answers

How to calculate the determinant of a matrix in javascript?

Eg: det([-1, -2, 3], [3, 3, 1], [-1, 2, -3]) // retorna 22 Eg: det([1, 2], [2, 5]) // retorna 1 Eg: det([8]) // retorna 8     
asked by 10.02.2014 / 21:12
1
answer

Array parameter passing error

I'm trying to understand how pointers work for an array. For this, I elaborated the small program below. I made some mistake because, in the line indicated, segmentation fault is occurring. What is the correct way to pass the pointer pointi...
asked by 14.12.2014 / 17:26
1
answer

What does i-thimo mean in an array?

What i-th means, I'm having trouble understanding its use in arrays and arrays.     
asked by 15.02.2016 / 14:57
1
answer

How to make a function inside a function return a vector?

I have a job for my course, and it is necessary to make a program similar to the megasena game. It's almost ready, but I'm finding a little problem and need help. Data of the work: maximum of 10 players can bet, each one can bet from 6 up to 15...
asked by 29.05.2014 / 23:08
2
answers

Catching elements around a selected array

The idea is to create an array of integers with the amount of rows and columns defined by the user. Then an existing value in the array must be entered and the program should return the values immediately to the left, right, above and below the...
asked by 30.08.2018 / 16:26
1
answer

Computational efficiency in R - lists or vectors

I'm studying computational efficiency in R, generating matrices through different methods. First, I generate an array of vector form and calculate the variances for its columns: matriz <- matrix(rep(NA, 1000*200), nrow = 1000, ncol=200)...
asked by 10.03.2018 / 04:04
2
answers

Somatoria accumulating columns in a matrix in R

I have the following situation: In a numeric matrix type: Temp <- matrix(runif(25, 10, 100),nrow=5,ncol=5) V1 V2 V3 V4 V5 11 34 45 54 55 16 21 45 75 61 88 49 85 21 22 12 13 12 11...
asked by 25.04.2016 / 23:10
1
answer

vectorize moving average of an array in R

I am doing the following operation with an array in the R: > m <- matrix(1:9, ncol = 3, nrow = 3) > m [,1] [,2] [,3] [1,] 1 4 7 [2,] 2 5 8 [3,] 3 6 9 > m2 <- m > for(i in 1:nrow(m)){ + for(j...
asked by 20.07.2015 / 23:28