Group Abstract Group Abstract

Message Boards Message Boards

0
|
4.7K Views
|
4 Replies
|
3 Total Likes
View groups...
Share
Share this post:

Average of interpolation functions

Posted 4 years ago
Attachments:
POSTED BY: Eric Yoshida
4 Replies
Posted 4 years ago

That is exactly what I was looking for. Thank you so much for the help!

POSTED BY: Eric Yoshida

Eric,

your data have different values for the abscissa. In those cases I find TemporalData quite handy - this I use in combination with Around:

fn = "Test_Data.xlsx";
sheets = Import[fn, "Data"];
tData = TemporalData[rawData = sheets[[All, 2 ;;, {-2, -1}]]];
stress[strain_] := With[{sld = tData["SliceData", strain]}, Around[Mean[sld], StandardDeviation[sld]]]

With this simple function you already can do things like:

enter image description here

and those values can be plotted:

ListLinePlot[Table[{Around[strain, 0.000001], stress[strain]}, {strain, 0, .65, .05}], IntervalMarkers -> "Bands", PlotRange -> {0, 22}, Epilog -> {Point /@ rawData }, ImageSize -> Large]

enter image description here

The statistics is made of just three values here, and so we see the somewhat strange effect that some data points are outside of the "band". Does that help? Regards -- Henrik

POSTED BY: Henrik Schachner
Posted 4 years ago

Thank you so much Rohit, but I believe I may have mis-worded my question. Each sheet is a singular stress-strain curve of a sample, giving me three curves total. I was attempting to find and plot the mean and standard deviation against the average of the three stress-strain curves for experimental reasons.

Thus, the image would look similar to the one below.

enter image description here

My apologies for the poorly worded question, hopefully this makes things a tad clearer. Any help would be greatly appreciated.

Thank you!

POSTED BY: Eric Yoshida
Posted 4 years ago
POSTED BY: Rohit Namjoshi
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard