{"author_name":"toburau","provider_url":"https://hatena.blog","description":"\u6628\u65e5\u3001\u4e00\u5b9a\u306e\u5165\u529b\u5024\u304c\u3042\u3063\u305f\u3068\u304d\u306b\u53cd\u5fdc\u3059\u308b\u51e6\u7406\u306b\u3064\u3044\u3066\u66f8\u3044\u305f\u304c\u3001\u30b9\u30c6\u30a3\u30c3\u30af\u306e\u5165\u529b\u3067\u306f\u22121\u304b\u3089+1\u306e\u5024\u3092\u53d6\u308b\u3053\u3068\u304c\u3042\u308b\u3002\u305d\u3053\u3067\u30de\u30a4\u30ca\u30b9\u65b9\u5411\u306b\u3064\u3044\u3066\u3082\u8003\u616e\u3057\u305f\u65b9\u6cd5\u3002 #include <cmath> float input; // \u5165\u529b -1->1 float min; // \u6700\u5c0f\u5024 0->1 float absInput = abs(input); float absResult = max( (absInput-min) / (1.0f-min), 0.0f ); float result = std::copysign(absResult, input); \u5165\u529b\u5024\u306e\u7d76\u5bfe\u5024\u3092\u53d6\u3063\u3066\u6c42\u3081\u3001copy\u2026","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftoburau.hatenablog.jp%2Fentry%2F2019%2F06%2F25%2F230756\" title=\"\u4e00\u5b9a\u5024\u4ee5\u4e0a\u306e\u5165\u529b\u304c\u3042\u3063\u305f\u3068\u304d\u306b\u53cd\u5fdc\u3059\u308b \u305d\u306e2 - \u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","blog_title":"\u30b2\u30fc\u30e0\u304c\u4f5c\u308c\u308b\u3088\u3046\u306b\u306a\u308b\u307e\u3067\u304c\u3093\u3070\u308b\u65e5\u8a18","categories":[],"blog_url":"https://toburau.hatenablog.jp/","image_url":null,"published":"2019-06-25 23:07:56","url":"https://toburau.hatenablog.jp/entry/2019/06/25/230756","version":"1.0","provider_name":"Hatena Blog","title":"\u4e00\u5b9a\u5024\u4ee5\u4e0a\u306e\u5165\u529b\u304c\u3042\u3063\u305f\u3068\u304d\u306b\u53cd\u5fdc\u3059\u308b \u305d\u306e2","width":"100%","height":"190","author_url":"https://blog.hatena.ne.jp/toburau/"}