According to the books of Aga MURATA, in the study of Kaso during the Edo period, Inyogogyo (the cosmic dual forces [yin and yang]) and the five elements 'wood,' 'fire,' 'earth,' 'metal' and 'water' was assigned by the number of jo (counter for tatami mats; measure of room size) which could predict a synastry or rivalry.
村田あがの著物によれば、江戸時代の家相学では、畳数に陰陽五行での「木」「火」「土」「金」「水」を割り当て、相生、相剋を判断していた。