Grafiti LLC

Product Uses

Below are examples of TableCurve used in various fields and methods

Analysis of Regional Pulmonary Ventilation

An example is the analysis of regional pulmonary ventilation of a 133Xe airway bolus using a scintillation camera. Since the bolus of xenon initially washes into the lung and subsequently washes out, we would expect one of the TableCurve intermediate kinetic functions to fit the data. See the TableCurve PDF nonlinear equation documentation for description of the intermediate functions.

They represent measurement from the middle of three compartments. In our case the middle compartment is the lung with the airway and recirculation-via-organ-systems being the first and third compartments, respectively. Six of ten measured regions are shown in Figure 1. We want to fit all ten data sets as a batch and place the results in a Word file.

Setting Up Automation

This is a two step procedure:

Fit the First Data Set

You fit the first data set exactly the same way you normally use TableCurve except in this case we are going to restrict the fitting to the Kinetic equations. Open TableCurve and Import the file regional 133Xe washout.xls that you have downloaded.

The Select Columns dialog, Figure 2, shows the data in columns A K of the Excel worksheet. This data is in X Many Y format with the X data in column A and the ten Y data sets in columns B – K.

Select column A and B to be the X and Y data. At the Process menu select Edit Custom Equation Set. For each tab select Clear to deselect the equations except for the Kinetic tab – select all Kinetic equations. The dialog for the Kinetic tab is shown in Figure 3.

Click the Fit button shown in Figure 3 to fit these equations to the data in columns A and B of the Excel worksheet. Click Graph Start to view the Review Curve Fit window and equations. The equation list shows the highest ranked equation (by either R2 or F-Statistic) is “Intermed11 c < d(a,b,c,d)” which is what we expected. For this data set the Equil111 equations are probably not significantly different from the Intermed11 equations.

Use Automation to Fit All Data Sets

We will now use Automation to fit all ten data sets with the equation selected to be the best during the fit of the first data set (Intermed11 c < d(a,b,c,d)) and place the results in a Word document. The Automation icon is located at the bottom of the icon collection of the Review Curve-Fit window. Click on it to obtain the Automation dialog.

Our data source is an Excel file and our data is located in the first worksheet Single X (XY in cols AB, AC, AD,…) format. These are the options selected in the Data Source group box in Figure 5.

Select the options in the Output group box in Figure 5 to put the ten data set curve fit results in the Word document ‘133Xe washout output.doc’.

Click OK to curve fit the ten data sets with the Intermed11 c < d(a,b,c,d) equation.

Results of the Automated Fit

Graphs for the fit to each data set and the numerical fit results are placed into the Word document. The results for the second data set are representative and are shown in Figure 6.

Rank 1 Eqn. 8129 Intermed11 c < d ( a,b,c,d)

r2 Coef DetDF Adj r2Fit Std ErrF-value
0.98607258670.98549227780.02837841612289.2272163
ParmValueStd Errort-value95%Confidence LimitsP>|t|
a.0.0124857400.0092321931.352413322-0.005837610.0308090870.17939
b.2.6351302030.4507278275.8463890211.7405602403.5297001670.00000
c.0.0580028270.0075934217.6385635790.0429319890.0730736650.00000
d.0.1062826250.0144928887.3334330250.0775182540.1350469970.00000

An excellent fit is obtained with and F ratio > 2000. Of physiological interest, the clearance constant (c parameter) is 0.058 sec-1. For all data sets this clearance rate ranges from 0.028 to 0.065 sec-1 with corresponding time constants of 35 (apical lung region) to 15 seconds (basal lung region).

Processing TableCurve Results

The Word file is an excellent report format but if you want to continue to process the results of TableCurve Automation then use the Excel output option.

The options shown in Figure 7 will place the fit results of the ten data sets into ten worksheets in the Excel file “133Xe washout output.xls”. You can then write a simple VBA macro in Excel to process these results. For example, you might create a table of lung clearance constant (c parameter) results for the ten data sets as a function of distance from lung apex to base.

[/toggle] [toggle border=’2′ title=’Measurement of Oil Droplet Size and Distribution’]

TableCurve 2D and SigmaScan Pro were used to characterize the size distribution of oil droplets. SigmaScan measured the oil droplet radius and TableCurve® found the Weibull function to best characterize their size distribution. Oil droplets, suspended in a fluid column were imaged using conventional CCD camera technology and a PC compatible frame grabber board.

The image shown in Figure 1 is: an image of oil droplets suspended in a fluid column.

Figure 2: Image after contrast enhancement. The image was calibrated using a two point calibration from the Calibrate, Distance and Area option in the Image menu. The contrast was enhanced using the Histogram Stretch procedure (Image, Intensity menu) so that operators could better visualize the oil droplets (the Old Start line end point was dragged with the mouse to intensity 192 which stretches the light gray (192) to white (255) range over then entire 0 – 255 range).

The enhanced image is shown in Figure 2.

Figure 3: Selecting the oil droplets using intensity thresholding. Intensity Thresholding the image in the intensity range 0 – 140 using the Image, Threshold option selected the darker oil droplets.

The selected oil droplets are shown in the red overlay plane in Figure 3.

Figure 4: Using the Fill Holes procedure to eliminate open areas in the oil droplets. Due to the surface reflections, intensity thresholding will not select all pixels in some of the oil drops. The Fill Holes feature in the Image, Overlay Filters dialog was used to allow accurate droplet area measurements to be made.

This fills the holes in the droplets as shown in Figure 4.

Measurements and Results

The objects on the red overlay plane were then counted and the parameters perimeter, area, ferret diameter, shape factor, compactness and number of pixels measured using the Measure Objects option in the Measurements menu. These measurements were selected from the list in the Measurements tab in the Measurements Settings dialog.

A macro was written to compute the circular radius of each droplet using the equation R = (A/pi)^0.5 and the results placed into the worksheet. A histogram of droplet radius from 0 to 10 microns was also computed. An ASCII file report was generated and formatted in Excel.

PerimeterAreaFeret DiameterShape FactorCompact# PixelsRadiusSize RangeNumber of Droplets
9.576.992.980.9613.11161.4900
1.870.440.751.57810.37151
9.966.112.790.7716.22141.39237
66.9163.3114.440.4627.413747.21330
15.5717.034.660.8814.23392.33413
31.9134.56.630.4329.51793.3156
25.5319.6550.3833.16452.562
3.190.871.051.0811.6620.5373
1.870.440.751.57810.3781
14.6315.284.410.914.01352.2190
1.870.440.751.57810.37100
14.0810.043.580.6419.75231.79  
14.8611.353.80.6519.45261.9  
19.5319.214.950.6319.85442.47  
14.0810.923.730.6918.17251.86  

The histogram data in the last two columns was copied into TableCurve 2D. All peak functions were selected from the Custom Equation dialog and the Weibull distribution found to fit the data best. The TableCurve® graph of these results is shown in Figure 5 below:

[/toggle] [toggle border=’2′ title=’USA Young America Optimized With TableCurve 2D®’]

PACT95, the coalition that designed the fastest American yacht in the 1995 America’s Cup race, Young America, chose TableCurve 2D to help optimize their design because it is the only software that, in seconds, searches through thousands of equations to describe difficult-to-model empirical data.

Taking data samples from numerous sources, including wind tunnel tests, tank testing, and data from many other types of experiments, TableCurve® was able to convert vast amounts of empirical data into simplified curve fits. These algorithms were then input into a Velocity Prediction Program (VPP) that balances the equations of motion while looking for the fastest boat. [/toggle] [toggle border=’2′ title=’Explicit Function Approximation’] A closed form expression for F cannot be obtained for the Baker and Lonsdale equation. However, since the expression for F does not contain the parameter k, it can be numerically ‘inverted’. The numerical inversion was done with TableCurve 2D®.

A closed form expression for F cannot be obtained for the Baker and Lonsdale equation (first equation in the Table). However, since the expression for F does not contain the parameter k, it can be numerically ‘inverted’. The numerical inversion was done with TableCurve 2D® using the following procedure. First the expression for F on the left side of the equation was evaluated for 1000 equidistant F values from 0 to 100.

The columns containing the expression for F (which equals kt) and F were then reversed so that F is now the Y variable and kt is the X variable. All equations in TableCurve were then fit to this X,Y data set and the equations ranked using the F statistic. The best fitting equation found (Fstat = 2.7×1014) was the following rational polynomial in fractional powers of x.

where the coefficients are

a = 2.5788672e-6

b = -3.4434044

c = 244.94883

d = 3.9105658

e = -976.78997

f1= -1.5002823

g = 1407.9333

h = 0.039306878

i = -862.63205

j = 0.0091845726

k1=187.88278

In this equation F is an explicit function of x (=kt) so it is used in the nonlinear curve fitter to estimate the parameter k. An analysis of the residuals found the maximum absolute difference between the actual F and approximate F to be 0.0003 (at F= 99.9). The maximum absolute percentage difference was only 0.002% (at F = 0.1).

Shopping Cart
Scroll to Top