fix NaN in cog
fix NaN in cog
tips example
readme