1. A pattern generating apparatus that generates a reference pattern used to evaluate a shape of a circuit pattern of an electronic device, the pattern generating apparatus comprising: an arithmetic device configured for: performing alignment between at least two contour data which have the same pattern shape on a design data of a circuit pattern or between a contour data and design data which have the same pattern shape as each other on a design data of a circuit pattern, and generating a reference pattern, which has as a contour line, average positions between: corresponding points of the at least two aligned contour data, middle positions between the corresponding points of the at least two aligned contour data, the average positions between the corresponding points of the aligned contour data and design data, or middle positions between the corresponding points of the aligned contour data and design data.