-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathRun Analysis.jsl
142 lines (131 loc) · 4.08 KB
/
Run Analysis.jsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
// Comment
/* Open the data file */
dt_rawdata = Open(
"C:\Temp\Current Stress.csv",
columns(
Name( "Lot" ) = Character,
Name( "Wafer" ) = Character,
Name( "Device" ) = Character,
Name( "Size" ) = Numeric,
Name( "Params" ) = Character,
Name( "Additional Info" ) = Character,
Name( "Row" ) = Numeric,
Name( "Column" ) = Numeric,
Name( "Current Stres (A)" ) = Numeric,
Name( "T_Final" ) = Numeric,
Name( "V_final (V)" ) = Numeric,
Name( "Test Timestamp - File" ) = Numeric,
Name( "Test Timestamp - Die" ) = Numeric,
Name( "Process Step" ) = Character,
Name( "Mask" ) = Character,
Name( "Temperature (C)" ) = Character,
Name( "Stress (mA/mm^2)" ) = Numeric,
Name( "Index" ) = Numeric
),
Import Settings(
End Of Line( CRLF, CR, LF ),
End Of Field( Comma ),
Strip Quotes( 0 ),
Use Apostrophe as Quotation Mark( 0 ),
Scan Whole File( 1 ),
Labels( 1 ),
Column Names Start( 1 ),
Data Starts( 2 ),
Lines To Read( All ),
Year Rule( "10-90" )
),
Output Table( "Raw Data" )
);
dt_rawdata << Set Name("Raw Data");
//Add a Qbd column to the Raw Data table
Data Table( "Raw Data" ) <<
NewColumn("Qbd (mA/mm^2)",
Numeric,
Continuous,
Formula( :Name("Current Stress (A)") * (:T_Final / :Size))
);
//Summarize the Data Table
Data Table( "Raw Data" ) <<
Summary(
Group(
:Name( "Device" ),
:Name( "Size" ),
:Name( "Current Stress (A)" ),
:Name( "Stress (mA/mm^2)" ),
:Name( "Temperature (C)" )
),
Mean( :Name( "Qbd (mA/mm^2)" ) ),
Std Dev( :Name( "Qbd (mA/mm^2)" ) ),
Median( :Name( "Qbd (mA/mm^2)" ) ),
N( :Name( "Qbd (mA/mm^2)" ) ),
output table name( "Summary - 1st Round" )
);
//Join the summarized info to the Raw Data table.
Data Table( "Raw Data" ) <<
Join(
With(
Data Table(
"Summary - 1st Round"
)
),
Merge Same Name Columns,
By Matching Columns(
:Name( "Device" ) = :Name( "Device" ),
:Name( "Size" ) = :Name( "Size" ),
:Name( "Current Stress (A)" ) = :Name( "Current Stress (A)" ),
:Name( "Stress (mA/mm^2)" ) = :Name( "Stress (mA/mm^2)" )
),
Drop multiples( 0, 0 ),
Name( "Include non-matches" )(0, 0),
Output Table( "Raw with Summary1" )
);
//Add columns for Skew and Kurtosis which get summed up for true Skewness and Kurtosis calculations
Data Table( "Raw with Summary1" ) <<
NewColumn( "Skewness",
Numeric,
Continuous,
Formula( ((:Name("Qbd (mA/mm^2)") - :Name("Mean(Qbd (mA/mm^2))")) / :Name("Std Dev(Qbd (mA/mm^2))")) ^ 3 )
);
Data Table( "Raw with Summary1" ) <<
NewColumn( "Kurtosis",
Numeric,
Continuous,
Formula( ((:Name("Qbd (mA/mm^2)") - :Name("Mean(Qbd (mA/mm^2))")) / :Name("Std Dev(Qbd (mA/mm^2))")) ^ 4 )
);
//Summarize the data again, which sums up the kurt and skew columns
dt_summary1 = Data Table( "Raw with Summary1" ) << Summary(
Group(
:Device,
:Size,
:Current Stress,
:Name( "Temperature (C)" ),
:Name( "Stress (mA/mm^2)" )
),
Mean( :Name( "Qbd (mA/mm^2)" ) ),
Std Dev( :Name( "Qbd (mA/mm^2)" ) ),
Median( :Name( "Qbd (mA/mm^2)" ) ),
N( :Name( "Qbd (mA/mm^2)" ) ),
Sum( :Skewness ),
Sum( :Kurtosis )
);
current data table() << Set Name( "Summary2" );
//Add true Skewness, Kurtosis, and Bimodality Coefficient to Summary2
Data Table( "Summary2" ) <<
NewColumn( "Skewness",
Numeric,
Continuous,
Formula( :Name("Sum(Skewness)") * ((:Name("N Rows")) / ((:Name("N Rows") - 1) * (:Name("N Rows") - 2))) )
);
Data Table( "Summary2" ) <<
NewColumn( "Kurtosis",
Numeric,
Continuous,
Formula( ((:Name("N(Qbd (mA/mm^2))") * (:Name("N(Qbd (mA/mm^2))") + 1)) / ((:Name("N(Qbd (mA/mm^2))") - 1) * (:Name("N(Qbd (mA/mm^2))") - 2) * (:Name("N(Qbd (mA/mm^2))") - 3))) * :Name("Sum(Kurtosis)") - (3 * (:Name("N(Qbd (mA/mm^2))") - 1) ^ 2) / ((:Name("N(Qbd (mA/mm^2))") - 2) * (:Name("N(Qbd (mA/mm^2))") - 3)) )
);
Data Table( "Summary2" ) <<
NewColumn( "Bimodality Coeff",
Numeric,
Continuous,
Formula( (:Skewness ^ 2 + 1) / (:Kurtosis + (3 * (:Name("N Rows") - 1) ^ 2) / ((:Name("N Rows") - 2) * (:Name("N Rows") - 3))) )
);
Close( dt_rawdata, No save );