PROBLEM TO BE SOLVED: To easily configure an apparatus for accurately detecting a weak magnetic field at low cost. SOLUTION: Each of them is configured by arranging a plurality of magnetic sensor cells including a magnetic sensor in three dimensions, and is based on a magnetic sensor array capable of detecting an input magnetic field in three axial directions and an input magnetic field detected by the magnetic sensor array. A measurement data acquisition unit that acquires a plurality of measured values, a magnetic field calculation unit that calculates an input magnetic field based on a plurality of measured values, and a magnetic field detection based on a calculation result that calculates a plurality of measured values and an input magnetic field. It includes an error calculation unit that calculates an error, and a measurement data selection unit that selects a plurality of measurement values used for calculating an input magnetic field by the magnetic field calculation unit from a plurality of measurement values based on the detection error. , Provides a measuring device. [Selection diagram] FIG. 9【課題】微弱な磁場を精度よく検出する装置を、低コストで簡便に構成する。【解決手段】各々が磁気センサを含む複数の磁気センサセルを三次元に配列して構成され、3軸方向の入力磁場を検出可能な磁気センサアレイと、磁気センサアレイによって検出された入力磁場に基づく複数の計測値を取得する計測データ取得部と、複数の計測値に基づいて、入力磁場を算出する磁場算出部と、複数の計測値および入力磁場を算出した算出結果に基づいて、磁場の検出誤差を算出する誤差算出部と、検出誤差に基づいて、複数の計測値の中から、磁場算出部によって入力磁場を算出するために用いる複数の計測値を選択する計測データ選択部と、を備える、測定装置を提供する。【選択図】図9