Calculating data points on a graph

  • Context: Undergrad 
  • Thread starter Thread starter Undernet
  • Start date Start date
  • Tags Tags
    Data Graph Points
Click For Summary

Discussion Overview

The discussion revolves around how to calculate and adjust data points on a graph while preserving its general shape. Participants explore methods for modifying the peak value and the duration of the graph, focusing on computational approaches to generate new data points based on specified parameters.

Discussion Character

  • Technical explanation
  • Mathematical reasoning
  • Debate/contested

Main Points Raised

  • One participant seeks a method to calculate new data points at 1ms intervals when adjusting the peak of a graph from -70 to -80 at 20ms.
  • Another suggests simply relabeling the axis without altering the graph itself.
  • A participant notes that the graph is represented in a computer program with an array of 140 slots, each representing 1ms.
  • One suggestion involves multiplying all values by a factor (8/7) to adjust for a specific peak, but this is seen as limited to one peak adjustment.
  • A participant expresses the need for a more general solution that allows for inputting desired peak and duration values, automatically generating corresponding data points.
  • Another participant proposes finding the maximum value from a set of data points and scaling the values based on the desired peak.

Areas of Agreement / Disagreement

Participants do not reach a consensus on a single method for generating new data points. Multiple approaches are suggested, but no agreement is found on a definitive solution.

Contextual Notes

Participants mention the use of alpha functions for graph adjustments but express uncertainty about how to modify these functions for automatic scaling. There is also a lack of clarity on the specific mathematical steps required to implement the proposed solutions.

Undernet
Messages
3
Reaction score
0
http://www.clearandblue.com/graph.GIF


I have a graph shown above however I want to adjust the height of the graph (where it reaches -70 @ 20ms) whilst still preserving the general shape of the graph. The problem is that I need to know the values of the data points at every 1ms interval (each square represents 20ms).

Does anybody have any idea of how I would calculate the values? For example if I decided that the peak would be at -80 instead of -70 @ 20ms then it would change all the other data points, but how do I calculate what the new values of the data points for each millisecond?

Is there some equation or graph program that can do this?

I hope I am making sense here, my math skills are pathetic.

Thanks
 
Last edited by a moderator:
Mathematics news on Phys.org
You could just relabel the axis, and leave the actual graph alone.
 
Yea normally you could do that but this graph is being represented in a computer program, the picture is just for illustration. The graph in the computer is stored in an array with 140 slots; each slot representing 1ms which would hold one of the data point values.
 
If you just multiply all the values by 8/7 it should work.
 
Quote>"If you just multiply all the values by 8/7 it should work."

Yes that could work but that's for one specific peak.

I need a way of simply giving my program the value of the desired peak of the graph and the program should go and generate all the data values for each ms, that would, if mapped onto a visible graph draw a graph that is the same shape as my example graph but with the peak at the specified value.

I also need to do the same sort of thing with the time too, by specifying the length of the graph to the program and the program should generate the data points that would, if mapped onto a visible graph, draw a graph that has the same shape as my example but with the length being at the specified time. On my example, the graph ends at 140ms but I would like to give the program a value and it should extend the graph to the desired value whilst still preserving the general shape of the graph.

I looked into using something called alpha functions, by having one function for the raise from the base to the peak and another from the fall from the peak to the base. However I don’t know how to modify the functions so it draws a graph that reaches the desired peak and time scale automatically just by giving the desired peak and duration. I have to create a whole new alpha function for each desired peak and duration at the moment which is not practical since the peak could be in the range of 100 different values, the same goes for duration too.

Thanks
 
Well, can this program find the maximum value out of a finite set of values (like Max(1, 4, 2, 7, 4, 2) = 7)? If so, then just find the max, and multiply each point by desiredvalue/max.
 

Similar threads

Replies
4
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 5 ·
Replies
5
Views
4K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
5
Views
2K
  • · Replies 76 ·
3
Replies
76
Views
7K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 3 ·
Replies
3
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K