
Fitting environment interfaces for all Web-cloud-based solution for general purpose function fitting, data plotting, and report writing
|
Please organize your data sets in lines with column values separated by white spaces
The reference of each column is obtained by the character "c" and the order number of the column, meaning: c1 -> the first column, c2 -> the second column, etc. The new columns muts be separated by white spaces. If you need to include white spaces in your expressions please quote them as in one of the examples below.
Examples of different commands
- c1 c2 1.0 # keeps col1 and col2, col3=1
- c1 c2 0.05*c2 # idem, col3=0.05*col2
- cln c1 c2 c3 # 1st col is line number
- 3-4 c1 c2 1.0 # idem lines n=3 to n=6
- 3- c1 c2 1.0 # idem for n=3 to end
- -6 c1 c2 0.05*c2 # idem for n=1 to n=6
- 5 c1 c2 0.05*c2 # idem just for line 5
- sort/rsort # to sort table by ascending/descending order
- -10:1:100 # steps from -10 to 100 in steps of 1
- fft # calculates the fft for a two 2^n x y data set
- c1 a+b*x c3 # a and b must be fitting parameters of you fitting function and x is your independent variable
- average # calculates the average of columns 2, 3... that have the same c1 value.
When used with "sdv" e "mdv" like "average sdv" or "average mdv" the mean standard deviation, or the average of the deviations with respect to the average are also calculated, respectively.
- c1 "c2 + 1" c3 # allows the user to use white spaces in the expressions
- c1 _BPP(c1,a,tau) # calls the specfic library function BPP with the c1 values and fitting parameters a and tau
- maxima or minima or maxima and minima # selective select the lines with c2 maxima and minima of a ordered table around the mean value of c2
- selif c1 > 1 and c2 < 10, 2 # selects all lines where c1 is larger than 1 and smaller than 10 in steps of 2.
- dci/dcj calculates the derivative of column i with repestc to column j
- Fancy selection ex: "select 2:3:end-1, i c1 and i+2 c2" generates a table with two columns where the elements of column 1 are from column 1 of line i and the elements of column 2 are from column 2 of line i+2. The selection starts at line 2 with step 3 until one line before the end of file.
-
Example of a sequence of commands that generates a simulated data set with 512 points, performs a fft, extracts the real part of the fourier transform and adds a third column with a fixed value.
0:1:511
c1*0.001
c1 cos(c1*2*pi/0.005)*exp(-20*c1*c1)
fft
c1 c2 1e-6
Check one by one the output results.
- Ic2dc1: calculates the integral using the trapezoidal rule using column data c2 with respect to column data c1. Try in the plotter module:
0:0.01:1
c1*2*pi
c1 sin(c1)
c1 c2 Ic2dc1
You will get a 3 columns table angle, sin(angle), integral_0^sin(angle) dangle
Click on split and check the result