A thin-film device incorporates a device main body and four terminal electrodes. Thus, it is an object of the present invention to obtain a resistance distribution corresponding to a tapered shape of a gate electrode in a gate-overlapped region. Data for a given trading floor is calculated and distributed during the time slot assigned to that floor. For each of the shots in the forward window the program determines a dissimilarity between a selected shot in forward window and each of the other shots in the rearward window.