pre calculate samples matrix