The correlation determination method performed by determination unit 32 is not limited to the above. Determination unit 32 may make the above determination based on at least one of the correlation value and the sum of correlated lines. Determination unit 32 calculates the total of correlation values of the non-writing lines included in non-writing line group 22b2 with respect to writing lines 22a1 and the sum of correlated non-writing lines. Determination unit 32 also calculates the total of the correlation values of the non-writing lines included in non-writing line group 22b2 with respect to writing line 22a2 and the sum of correlated non-writing lines. Determination unit 32 compares the sums of correlated non-writing lines or the totals of correlation values, and determines whether non-writing line group 22b2 has the stronger correlation with writing line 22a1 or 22a2. Determination unit 32 determines that the writing line and non-writing line group 22b2 have the stronger correlation when having the larger sum of correlated non-writing lines or the higher total of correlation value. When the sums of correlated non-writing lines are equal to each other, determination unit 32 may further determine whether non-writing line group 22b2 has the stronger correlation with writing line 22a1 or 22a2 based on the total of correlation values. When the sums of the correlation values are equal to each other, determination unit 32 may further determine whether non-writing line group 22b2 has the stronger correlation with writing line 22a1 or 22a2 based on the sum of correlated non-writing lines. Consequently, whether non-writing line group 22b2 sandwiched between writing lines 22a1 and 22a2 has the stronger correlation with writing line 22a1 or 22a2 can be determined.