Questions tagged [averages]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
82 views

Calculate the mean value from point inside a 2D contour

I saw a question about creating contour lines over a smoothdensityhistogram plot. It really help me to create this kind of graphs. I want to ask if is possible to extract only the points inside a ...
Renato QE's user avatar
1 vote
1 answer
73 views

Finding Max/Min of interpolated function and average value above/below the x axis

I have the below code used to create an interpolation function that will plot the difference between two interpolated functions (to compare between different periods of time). However, I would like to ...
Andrew Bowsher's user avatar
1 vote
2 answers
67 views

How to make lists all the same length by automatically removing every second element?

I have 20 files of matrices which all contain the same kind of data. I can import and take the single column I need out of every file into a list. I need to average each of the 20 file's lists ...
Claudia's user avatar
  • 31
0 votes
0 answers
68 views

How to take an average of certain columns from multiple files?

I have many text files of tables, 300 rows long and 5 columns across. I can import all the files together as they're all named similarly. I would like to average column 2 of every file together, ...
Claudia's user avatar
  • 31
1 vote
1 answer
136 views

A square board of size n*n [closed]

I would like to Randomly generate n^2 natural numbers in an interval from 1 to n. Then consider placing each number on the cell with the same number (you can imagine the board numbered naturally, row ...
SkySystem's user avatar
1 vote
1 answer
51 views

Mean of List of Coordinates

Imagine I have the following list l = {{1, 2}, {1, 3}, {2, 4}, {2, 2}, {2, 3}} I want to take the mean only regarding the second element. That is, I want to find ...
sam wolfe's user avatar
  • 4,177
2 votes
1 answer
143 views

Moving average over a dataset

I have this data set in .csv and I imported them to mathematica to analyze them using Import function. Now here I have only shown a part of the dataset just to give an example of how it looks in Excel....
Indeterminate's user avatar
3 votes
2 answers
214 views

How to average elements of a list based in an interval

Suppose I have a list {x,y} like: Dados0 = {{21.554, 10.153}, {21.554, 9.23}, {21.554, 11.076}, {27.7141, 8.6141}, {27.7141, 11.4855}, {50.1348, 12.6982}, {50.1348, 14.2854}, {50.1348, 13.4918}, {62....
ALEXANDRE ARARIPE's user avatar
0 votes
0 answers
46 views

How to get the average x of a density function?

I have this code: ...
Victor Nielsen's user avatar
1 vote
1 answer
225 views

Moving average over time on data entering stochastically

The examples for using MovingAverage mostly refer to data evenly spaced in time,such as stock values. In typical physics data, events arrive random in time (e.g. radio active decay events, but also ...
Hans W's user avatar
  • 73
2 votes
2 answers
144 views

How to obtain the average amplitude of a signal from a differential equation

If I have the following differential equation ...
Udichi's user avatar
  • 537
1 vote
1 answer
127 views

How do we use mathematica to apply my average to this example? [closed]

I have defined a set function and an average. If you need help understanding my definitions, let me know. I will do my best to explain. Question How do I use Mathematica to apply my definition of ...
Arbuja's user avatar
  • 39
1 vote
1 answer
76 views

How do I get the same results using Mathematica?

According to this answer For each $n\ge 1$ let $l_{n,i}$ and $r_{n,i}$ be the left and the right endpoints of the segment $C_{n,i}$. Since the function $x^2$ increases on $[0,1]$ and $ l_{n,i}\...
Arbuja's user avatar
  • 39
2 votes
1 answer
86 views

Average behavior of degree distribution plots

I'll show what I'm doing in the moment and after that I'll explain what I'm trying to achieve. I use the following code to generate a large number of Barabási-Albert networks, and after that I plot ...
Augusto Bellinaso's user avatar
1 vote
1 answer
328 views

Plotting average of a function

I plotted a function and a certain horizontal line as a benchmark. After time t = 2 my function goes below the line, which is ok. But I need to show when the AVERAGE of this function goes below the ...
Anakin Skywalker's user avatar
2 votes
3 answers
130 views

Average of samples in a period of time

I take samples in an experiment which results low (around 0) and high (around 60) values. In many of the tests, there are more high values at the end of the experiment than at the beginning. The time ...
user1993416's user avatar
0 votes
1 answer
130 views

Moving average of events per minute

Suppose I have a list of times corresponding to event onset over the course of about an hour (in my case, skin conductance responses from electrodermal activity measurements). The amplitude of the ...
user63997's user avatar
8 votes
7 answers
406 views

Compare each element of a list to the mean of the remainder of the list

If I have a list lst = {1, 2, 3, 4, 5}; Is there some way of taking the first element and then comparing it to the average of the other ...
olliepower's user avatar
  • 2,224
0 votes
0 answers
60 views

I want to perform mean of a set of data after importing these data from computer in mathematica. But unable. pls help

I have used the following code in mathematica to perform mean to set of data. ...
P Pyne's user avatar
  • 441
1 vote
1 answer
108 views

Chord averaging of scattering experiment on a cylinder

In a scattering experiment in transmission, a cylinder is scanned from side to side (x position from -R to +R). Therefore, chords of length 2*Sqrt(R^2-x^2) are intersected. The property of interest ...
Luigi's user avatar
  • 1,271
1 vote
3 answers
6k views

Average function value over an Interval [closed]

What is the best way to find the average value of a function over a specific interval in Mathematica? I can not figure it out. I have two points on the interval and need to find the average value.
user39698's user avatar
6 votes
5 answers
676 views

Help finding the point(s) inside "non-star" closed shape with the highest average ray length?

I am trying to find the point(s) with the highest average ray length at any given point in a closed curve defined as an implicit function, (ex. $x^2+y^2+\sin(4x)+\sin(4y)=4$). I have some idea of ...
Arbuja's user avatar
  • 39