Questions tagged [mean]

The arithmetic mean (or simply the mean or average when the context is clear) is the central tendency of a collection of numbers. The mean is calculated as the sum of the numbers divided by the size of the collection.

The arithmetic mean, or simply the mean or when the context is clear, is the central tendency of a collection of numbers. The mean is calculated as the sum of the numbers divided by the size of the collection. Besides the arithmetic mean, the geometric mean and the harmonic mean can be calculated as well.

Means apply an equal weight to every member of a collection of numbers. This feature makes means not robust to outlier members. cf.

Source: Wikipedia

3925 questions
1
vote
1 answer

getting data from dynamically added form in angular

I'm developing an app using MEAN stack. I'm able to add form elements dynamically but cannot get inserted data in my ng-model. if i put ng-model="something.something" then every dynamically added form elements takes same data. I wish to take data as…
kisor
  • 464
  • 5
  • 22
1
vote
1 answer

I'm getting "Path 'name_of_the_field' is required" when post to my restify API

I'm trying to post data to my REST API made with Restify via Angularjs, but when I put the data into the form and execute the submit, I get an console error provided by the server (node and restify) telling me that the field is required still when…
Omar
  • 11
  • 1
  • 4
1
vote
1 answer

skflow pandas dataset mean down each 2 lines

I have a dataset X of lets say 2000 lines. I want to take each 2 lines and mean them col by col together. The result should be a 1000 line dataset (columns count should stay the same). I did this in matlab already #matlab function function […
CodingYourLife
  • 7,172
  • 5
  • 55
  • 69
1
vote
2 answers

Display post date with Angular

I made an app with Mean framework (Angular, Express, MongoDB). User can post anything. Now I display author, title etc... but I would like to display the post date. I tried something, and I succed to display the current date, but if I'll refresh…
Nitneq
  • 651
  • 10
  • 26
1
vote
1 answer

Create a TH2 which contains the standard deviation of a variable in a given bin

I have an XY map of event positions in a particle detector, and those events have dozens of variables which characterize them. Take energy, for instance: I can find the average energy of an event in a small region of the detector by making three…
awwsmm
  • 1,353
  • 1
  • 18
  • 28
1
vote
2 answers

mean of indexed elements across lists in R

I have a question similar to the problem raised in this question, however I am not interested in obtaining elementwise means within a list, but for each index value within an element across lists. Give I have these three lists ice_2000 =…
Larusson
  • 267
  • 3
  • 21
1
vote
1 answer

Render html with node.js

I am really new to the whole MEAN-stack and are trying to create an application on openshift but are unable to render a new page. I just keep getting this error and can't solve it with anything I've googled. My Error: Failed to lookup view…
Johanna
  • 51
  • 2
  • 8
1
vote
0 answers

What is faster for RestAPI development .NET or MEAN Stack

I have an idea on the answer but would love feedback. I have a webapp that is stable but want to expand to a iOS and Android App. What is faster for the webapp backend to create a REST API .NET or MEAN?
1
vote
2 answers

What's wrong with my 2-D Array mean and median calculation (using classes in Java)?

I'm doing a java project at school and one of the tasks that I'm stuck on is correctly calculating and displaying the mean and median of rows and columns of a 2-D array. My code is in classes so I'll try to ask this question as clearly as possible.…
1
vote
2 answers

How can I calculate the mean value/ min from a cvs continous dataset?

I am new to python and this is my first question, please apologize any mistakes. I have a big csv file with continuous measurements (measurements approx. every second, but interval is not fixed). I need to get mean value per minute. I found out that…
vera
  • 297
  • 3
  • 11
1
vote
1 answer

yearly survival rates with cox model [R]

I am quite new to survival analysis so my question can be naive to most of you, I apologize. I have some left and right censored telemetry data. I first had to estimate the effect of 3 dummy explanatory variables on survival, so I used an…
Laeti.B
  • 11
  • 1
1
vote
0 answers

web page does not receive data from mongodb

I am a beginner. I installed Bitnami MEAN stack and I have a question. "[]" shows on the web page when I enter http://127.0.0.1:3000/tableList. I want to know why the web page does not show the data in collections. On Command…
1
vote
0 answers

Resample pandas dataframe for how=median with missing values

I've got this silly problem that I just can't seem to get my head around. I'm trying to resample a pandas dataframe using medians, but it just spits out errors like: ValueError: Wrong number of items passed 81, placement implies 80 or ValueError:…
CAR ERL
  • 91
  • 1
  • 8
1
vote
2 answers

Calculate means of a row with a condition in column selection in R

I have a list of sales of different articles during time in the following format: col <- c("A", "B", "C") A <- c(1,0,0) B <- c(0,1,0) C <- c(0,0,1) colnames(df) <- c('article','w1', 'w2', 'w3') df article w1 w2 w3 A 1 0 0 B 0 1 0 …
Pavel M
  • 67
  • 5
1
vote
2 answers

Parallel.For() with Interlocked.CompareExchange(): poorer performance and slightly different results to serial version

I experimented with calculating the mean of a list using Parallel.For(). I decided against it as it is about four times slower than a simple serial version. Yet I am intrigued by the fact that it does not yield exactly the same result as the serial…
tethered.sun
  • 149
  • 3
  • 14