1. A pattern measurement device comprising: a calculation device that measures a dimension between patterns formed in a sample, by using data which is obtained by irradiating the sample with a beam, wherein the calculation device obtains centroids of a plurality of patterns contained in the data; obtains at least one of an inter-centroid distance of the plurality of patterns, angle information of imaginary lines which link the plurality of centroids to each other, and area information of a closed shape formed by the imaginary lines; and distinguishes at least one of a pattern which meets a specific condition, an area including the pattern which meets the specific condition, and an imaginary line between patterns meeting the specific condition, from at least one of a pattern different from the pattern which meets the specific condition, an area other than the area including the pattern which meets the specific condition, and an imaginary line between patterns other than the patterns meeting the specific condition, on the basis of at least one of the inter-centroid distance, the angle information, and the area information which have been obtained, or calculates information regarding at least one of the number of patterns meeting the specific condition, a size of the area including the patterns which meet the specific condition, and the number of imaginary lines between the patterns meeting specific condition.