DO WE CONSIDER ZERO,S IN AVERAGE FILLING METHOD FOR PREDICTION

1 visualización (últimos 30 días)
abdul wahab  aziz
abdul wahab aziz el 24 de Ag. de 2016
Comentada: John D'Errico el 24 de Ag. de 2016
Do we consider zero,s in average filling method for trust predictions. for example if there is a row 2 3 0 0 4 i want to take average will it b like this 2+3+4/2 ? zeros are ignored
  2 comentarios
John D'Errico
John D'Errico el 24 de Ag. de 2016
Why post the same question twice in a row? Post your question once.

Iniciar sesión para comentar.

Respuestas (1)

Azzi Abdelmalek
Azzi Abdelmalek el 24 de Ag. de 2016
A=[2 3 0 0 4]
sum(A)/nnz(A)
  2 comentarios
abdul wahab  aziz
abdul wahab aziz el 24 de Ag. de 2016
my question was that for this method shall we consider zero,s
Image Analyst
Image Analyst el 24 de Ag. de 2016
In your example, you did not include zeros so Azzi didn't either. However we don't know why the last non-zero column in "2+3+4/2" - the 4 only - was divided by 2. Why 2, and why divide only the 4 by some number and none of the other numbers????

Iniciar sesión para comentar.

Categorías

Más información sobre Feature Detection and Extraction en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by