<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by CB Hsu on Medium]]></title>
        <description><![CDATA[Stories by CB Hsu on Medium]]></description>
        <link>https://medium.com/@cbhsu?source=rss-85c5f10dd427------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*i5dtkh_fDdsWxA-3</url>
            <title>Stories by CB Hsu on Medium</title>
            <link>https://medium.com/@cbhsu?source=rss-85c5f10dd427------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 25 Nov 2026 01:05:19 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@cbhsu/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[主成分分析(Principal Component Analysis, PCA)與其有關的數學]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E4%B8%BB%E6%88%90%E5%88%86%E5%88%86%E6%9E%90-principal-component-analysis-pca-%E8%88%87%E5%85%B6%E6%9C%89%E9%97%9C%E7%9A%84%E6%95%B8%E5%AD%B8-4135a375ac52?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/4135a375ac52</guid>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Sun, 23 Jun 2019 20:10:55 GMT</pubDate>
            <atom:updated>2019-06-23T20:10:55.161Z</atom:updated>
            <content:encoded><![CDATA[<h4>用來降維的好用分析方法</h4><h3>現況和問題</h3><p>在機器學習/深度學習裡，預測能力會維度數(變數)增加，但增加到某個上限後，機器學習/深度學習就無法從更多的維度數(變數)挖掘出有用的資訊，從而導致預測能力的下降(參考<a href="https://zh.wikipedia.org/wiki/%E7%BB%B4%E6%95%B0%E7%81%BE%E9%9A%BE">維基百科</a>)。</p><p>那現在我們的問題就是：有沒有一種辦法，可以把維度數降到最低的同時，維持最多的資訊量(變異數)呢？</p><p>有，方法就是主成分分析(Principal Component Analysis, PCA)。PCA就是一個將原本維度投影到幾個存在最大的變異數的維度，來達到既降維，又維持足夠的資訊量(變異數)。</p><h3>預備數學</h3><blockquote>在詳細介紹PCA前，先講幾個會用到的數學。</blockquote><h4>變異數(Variance) &amp; 共變異數(Covariance) &amp; 共變異數矩陣(Covariance Matrix)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AROI3STaVJdgoLeX68DQQg.png" /></figure><h4>內積(Inner Product) &amp; 投影(Projection)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cda1KynnGFLxEGCMybs7Ew.png" /></figure><h4>特徵值(Eigen Value) &amp; 特徵向量(Eigen Vector)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9qTtwpm54e2ON2Nl8Qjxog.png" /></figure><h4>Lagrange 乘數法(Lagrange Multiplier Method)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sxJvQAKMZ8VYcM2Gyz2GHQ.png" /></figure><h3>主成分分析(Principal Component Analysis, PCA)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HlnnpY1Sr1lAz2ROPsK1Wg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gOEKFpsyOuccdCqnmhLn9A.png" /></figure><h3>主成分分析步驟</h3><ol><li>標準化d維原”數據集”。</li><li>建立共變異數矩陣(covariance matrix)。</li><li>分解共變異數矩陣(covariance matrix)為特徵向量(eigenvector)與特徵值(eigenvalues)。</li><li>選取k個最大特徵值(eigenvalues)相對應k個的特徵向量(eigenvector)，其中k即為新特徵子空間的維數。</li><li>使用排序最上面的k個的特徵向量(eigenvector)，建立投影矩陣(project matrix)W。</li><li>使用投影矩陣(project matrix)W轉換原本d維的原數據至新的k維特徵子空間。</li></ol><h3>Reference</h3><ul><li><a href="https://medium.com/@chih.sheng.huang821/%E6%A9%9F%E5%99%A8-%E7%B5%B1%E8%A8%88%E5%AD%B8%E7%BF%92-%E4%B8%BB%E6%88%90%E5%88%86%E5%88%86%E6%9E%90-principle-component-analysis-pca-58229cd26e71">機器/統計學習:主成分分析(Principal Component Analysis, PCA)</a></li><li><a href="http://arbu00.blogspot.com/2017/02/6-principal-component-analysispca.html">機器學習(6) — 主成分分析(Principal component analysis，PCA)</a></li><li><a href="http://episte.math.ntu.edu.tw/entries/en_lagrange_mul/index.html">Lagrange 乘數法</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/692/0*w0387juzXukYULXb.png" /><figcaption><a href="https://blog.bioturing.com/2018/06/14/principal-component-analysis-explained-simply/">https://blog.bioturing.com/2018/06/14/principal-component-analysis-explained-simply/</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4135a375ac52" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E4%B8%BB%E6%88%90%E5%88%86%E5%88%86%E6%9E%90-principal-component-analysis-pca-%E8%88%87%E5%85%B6%E6%9C%89%E9%97%9C%E7%9A%84%E6%95%B8%E5%AD%B8-4135a375ac52">主成分分析(Principal Component Analysis, PCA)與其有關的數學</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[線性代數] 特徵值(Eigen Value) & 特徵向量(Eigen Vector)及其相關的線性觀念複習筆記]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E7%B7%9A%E6%80%A7%E4%BB%A3%E6%95%B8-%E7%89%B9%E5%BE%B5%E5%80%BC-eigen-value-%E7%89%B9%E5%BE%B5%E5%90%91%E9%87%8F-eigen-vector-%E5%8F%8A%E5%85%B6%E7%9B%B8%E9%97%9C%E7%9A%84%E7%B7%9A%E6%80%A7%E8%A7%80%E5%BF%B5%E8%A4%87%E7%BF%92%E7%AD%86%E8%A8%98-55aefbc95403?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/55aefbc95403</guid>
            <category><![CDATA[math]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Sun, 23 Jun 2019 15:50:52 GMT</pubDate>
            <atom:updated>2019-06-23T15:50:52.514Z</atom:updated>
            <content:encoded><![CDATA[<h4>就是一個線性代數的筆記</h4><blockquote>最近想做一個主成份分析PCA的模型，想說來研究一下什麼是PCA，卻發現連什麼是特徵值(Eigen Value)都沒印象了，所以花一個週末，把線性代數一些基本的觀念都複習了一下。</blockquote><h3>線性相依(Linear Dependence) &amp; 線性獨立(Linear independence)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Jdxuky4xg81ymXiIF8IUXQ.png" /></figure><h3>行列式(Determinant)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0PME1Fz5bcu10LyaDFHz6Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_4-zGCBtD5Ht2SllmPiIMA.png" /></figure><h3>秩(Rank)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8G4di5IFxwPYkIsjAgRTUQ.png" /></figure><h4>用行列式求秩(Rank)</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GoSJ1UX-0wt3X2siHQ2vKQ.png" /></figure><h3>反矩陣(Inverse Matrix)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oZSvXCI_vkXY3s3iAAFp0A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cLYwnUzYZEwJvkPMin3l9A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BHfd3t-Wp0D8J_qs4TwWag.png" /></figure><h3>內積(Inner Product)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oktpCoukBBjOo98hwl6x1A.png" /></figure><h3>特徵值(Eigen Value) &amp; 特徵向量(Eigen Vector)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ehgm-7HzVvpBFrmNS40JOw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ATZZBq2Dtagcy1Poie4cYQ.png" /></figure><h3>對角化(Diagonalization)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9YNFnlh6nN_ucgNDuZOi3Q.png" /></figure><h3>Reference</h3><ul><li>線代啟示錄: <a href="https://ccjou.wordpress.com/">https://ccjou.wordpress.com/</a></li><li>靜宜資工線上課程: <a href="https://www.cs.pu.edu.tw/~tsay/course/LinearAlgebra/">https://www.cs.pu.edu.tw/~tsay/course/LinearAlgebra/</a></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*abfF1SFB9AVEDxcM.png" /><figcaption><a href="http://niico.org/course-review/%E7%B7%9A%E6%80%A7%E4%BB%A3%E6%95%B8/">http://niico.org/course-review/%E7%B7%9A%E6%80%A7%E4%BB%A3%E6%95%B8/</a></figcaption></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55aefbc95403" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E7%B7%9A%E6%80%A7%E4%BB%A3%E6%95%B8-%E7%89%B9%E5%BE%B5%E5%80%BC-eigen-value-%E7%89%B9%E5%BE%B5%E5%90%91%E9%87%8F-eigen-vector-%E5%8F%8A%E5%85%B6%E7%9B%B8%E9%97%9C%E7%9A%84%E7%B7%9A%E6%80%A7%E8%A7%80%E5%BF%B5%E8%A4%87%E7%BF%92%E7%AD%86%E8%A8%98-55aefbc95403">[線性代數] 特徵值(Eigen Value) &amp; 特徵向量(Eigen Vector)及其相關的線性觀念複習筆記</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[面試] Quant Job Interview Questions & Answers ch8 Logic/Brainteasers]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E9%9D%A2%E8%A9%A6-quant-job-interview-questions-answers-ch8-logic-brainteasers-6fb2fa424d10?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fb2fa424d10</guid>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Fri, 08 Feb 2019 16:45:43 GMT</pubDate>
            <atom:updated>2019-02-08T16:45:43.733Z</atom:updated>
            <content:encoded><![CDATA[<h3>8–1</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*rw9MgiI6yDLSxXO3" /></figure><p>Ans:</p><p>360/12/4 = 7.5</p><h3>8–2</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zKn0Uk42Og0zNGQ8" /></figure><p>Ans:</p><p>15*15*15 = 3375</p><h3>8–3</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5k1sU4EDkKo22iuy" /></figure><p>Ans:</p><p>2*2*6 + 2*12 + 8*1 = 56</p><h3>8–4</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*i3H1OxEyPSb2Fn_0" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/410/1*FfpI1cGx7pd0cA9vKsGRLQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*Ha7UC1YqEGfftZgdxS4WDw.png" /></figure><h3>8–5</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*E3L-nvHg6tKYvwjs" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/526/0*C7gB03uv-xmvW1KL" /></figure><h3>8–6</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sk_oCkTqg1ZhdfUY" /></figure><p>Ans:</p><p>It’s impossible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/824/0*WWJbAVz60OBt-geU" /></figure><h3>8–7</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Hy379cZgXHZ633B3" /></figure><p>Ans:</p><p>white in red: 500/105</p><p>red in white: 500/100</p><p>red in white</p><h3>8–8</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5oi6-uAVltpG_FRh" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/196/0*8O3TJyRaeMjm87Pp" /></figure><h3>8–9</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ozhqXqyyCzrvZfxQ" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/424/0*Au_iaYJe56UYbtK7" /></figure><h3>8–10</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*8EoQnI-Ubh80Buwl" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/408/0*YhEWtBJX0lA9OBtw" /></figure><h3>8–11</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ElD2Rd53G1CpLILv" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*duVlrP7w5T5M61Zv" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jaIyFdQeKqmKeSjx" /></figure><h3>8–12</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*jwO1C9IPOvDtPOXK" /></figure><p>Ans:</p><p>It’s binary arithmetic.</p><p>1,2,4,8,16,32</p><p>e.g. We need 16 and 4 to balance 20.</p><h3>8–13</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LIX26V7JX-4yHLtz" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wt3EgEWrtoxen7NL" /></figure><h3>8–14</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*r72-paKZAS2sypcI" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/0*y4sIl89gD860hsNR" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/572/0*24Pg--BH6kW9sFVH" /></figure><h3>8–15</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gRpUz9cU4NP3QOy8" /></figure><p>Ans:</p><p>A and 7</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/260/0*NfA0tPc_EDqueqgl" /></figure><p><a href="https://www.socialpsychology.org/teach/wason.htm">https://www.socialpsychology.org/teach/wason.htm</a></p><h3>8–16</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*zPfV7vRwTJDAzZnx" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xqXm3azKiJc3lly0" /></figure><h3>8–17</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*huD1UjPezVoKDu0r" /></figure><p>Ans:</p><p>if n == 1, lion eats the meat.</p><p>if n == 2, no lion eats the meat.</p><p>if n == 3, one of the lions eats the meat because it know after it eat, n will be equal to 2.</p><p>if n == 4, don’t eat.</p><p>if n == 5, do eat.</p><p>In conclusion, if the number of the lion is even, no one eats. And, if the number of the lion is odd, one eats it.</p><h3>8–18</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qlUzCCkf9bO0JFHf" /></figure><p>Ans:</p><p>The level will go down.</p><p>Because the dense of the anchor is greater than the water.</p><h3>8–19</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FqrMAtHL1mmkhZnk" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/0*ggpuyQmXx-VRKahP" /></figure><p><a href="https://www.geeksforgeeks.org/puzzles/">https://www.geeksforgeeks.org/puzzles/</a></p><h3>8–20</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TmO7yxPtiVRW8vKk" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*uamk6Kr8fJA8MVdi" /></figure><p>Ans:</p><p>The first day, the person who knows the 0 people with blue eyes commit suicide.</p><p>The second days, the people who know the 1 person with blue eyes commits suicide.</p><p>…</p><p>The n-th days, the people who know the n-1 people with blue eyes commit suicide.</p><h3>8–21</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FJg2Qac0rgIEFDS6" /></figure><p>Ans:</p><p>1 captain and 21 normal prisoners.</p><p>Prisoners turn on the switch if the switch is off (just 1).</p><p>If both switches are on, don’t do anything.</p><p>Captain will turn off the switches and count.</p><p>When the captain count to 21, the game is over.</p><h3>8–22</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*H-w2ledlD2d4-z1T" /></figure><p>Ans:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/810/0*UYckQ3J8z6PycDhG" /></figure><h3>8–23</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZYwrX4SqhUPHd3pe" /></figure><p>Ans:</p><p>Match 9 will win the game.</p><p>9%4 = 1</p><p>So, we need to match 4i + 1.</p><p>1,5,9</p><h3>8–24</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fzmkx7u3yGQ7cPYH" /></figure><p>Ans:</p><p>Play first and place the coin on the center.</p><p>And place the coin opposite to the B player’s placement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*BGwx9iXCOAwKoFgP" /></figure><h3>8–25</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3XLBqsWvhS9kctSm" /></figure><p>Ans:</p><p>- The poplulation of Taiwan is 23,000,000.</p><p>- Estimate a third of taiwanese have cars, that is, there are 7,700,000 cars.</p><p>- Refuel about once a week, so 1,100,000 cars need to refuel per day.</p><p>- Assue gas station serve 15 cars per hour. And serve 240 cars per day(16hrs).</p><p>- So we have about 4,500 gas stations in Taiwan.</p><p>- There are about 2,500 gas stations in Taiwan.</p><h3>8–26</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UcgHcL1LyBJdC1az" /></figure><p>Ans:</p><p>- The population of Taiwan is 23,000,000.</p><p>- Assume there are 1/10 of taiwanese play pianos, and piano needs to be tuned twice per year. We need 2,300,000 tunes per year.</p><p>- Every tuner tunes 4 piano per day and works for 200 days per year. That is, every tuner can tunes 800 pianos per year.</p><p>- There are about 3,000 tuners in Taiwan.</p><h3>Logo</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*hFOO_ogkXgClZ7Uw.jpg" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fb2fa424d10" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E9%9D%A2%E8%A9%A6-quant-job-interview-questions-answers-ch8-logic-brainteasers-6fb2fa424d10">[面試] Quant Job Interview Questions &amp; Answers ch8 Logic/Brainteasers</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[面試] 
Quantitative Finance Researcher 面試題]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E9%9D%A2%E8%A9%A6-quantitative-finance-researcher-%E9%9D%A2%E8%A9%A6%E9%A1%8C-61c9dec6ec52?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/61c9dec6ec52</guid>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Thu, 31 Jan 2019 16:39:00 GMT</pubDate>
            <atom:updated>2019-02-02T05:55:55.112Z</atom:updated>
            <content:encoded><![CDATA[<h3>[面試] <br>Quantitative Finance Researcher 面試題</h3><h4>美國知名老牌Hedge Fund的面試題</h4><p>以下是這次被問到的題目，做個記錄，順便分享給大家。</p><h3>演算法</h3><p>Q1: 一個單調遞增(strictly increase)的array &lt;1,3,5,6,7,8,11,14&gt;，被人切成兩半再接起來變成&lt;7,8,11,14,1,3,5,6&gt;，請問要怎麼找到最小值？</p><p>A1–1: O(N)作法，for 迴圈直到下一個值小於現在值。</p><p>A1–2:</p><p>O(logN)作法，找出array 的beg、mid、end</p><p>假如mid &lt; end:</p><p>新的array 變成 beg ~ mid</p><p>假如 mid &gt; end:</p><p>新的array變成mid~end</p><p>&lt;<strong>7</strong>,8,11,<strong>14</strong>,1,3,5,<strong>6</strong>&gt; -&gt; &lt;<strong>14</strong>,1,<strong>3</strong>,5,<strong>6</strong>&gt; -&gt; &lt;<strong>14</strong>,<strong>1</strong>,<strong>3</strong>&gt; -&gt; &lt;<strong>14</strong>,<strong>1</strong>&gt; -&gt; &lt;<strong>1</strong>&gt;</p><h3>C++</h3><p>Q1: 什麼是Virtual Function？</p><p>A1:</p><p>Virtual Function 是物件導向裡跟繼承有關的概念，幫助使用者達到<strong>多型</strong>的效果。</p><p>參考：<a href="https://zh.wikipedia.org/wiki/%E8%99%9A%E5%87%BD%E6%95%B0">https://zh.wikipedia.org/wiki/%E8%99%9A%E5%87%BD%E6%95%B0</a></p><p>Q2: ++i 和 i++有什麼差別？</p><p>A2:</p><p>++i：先加再賦值</p><pre>//<br>variable = ++i<br>//<br>tmp = i<br>i = i + 1<br>variable = i</pre><p>i++：先賦值再加</p><pre>//<br>variable = i++<br>//<br>i = i + 1<br>variable = i</pre><p>Q3: 什麼是const variable？</p><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-const-292cf37e96e4">const variable 介紹</a></p><h3>機率</h3><p>Q1: 假設 在一個路口，1hr 內遇到車子經過的機率是0.8，請問15min內遇到</p><p>車子經過的機率是多少？</p><p>A1: 假設15min內遇到車子的機率是P，那連續四個15min都沒遇到車子的機率就是(1-P)⁴ = 0.2 ，解完式子就能算出答案。</p><p>Q2: 假設小明、小華分別會在6:00am ~ 7:00am這個時間到定點，到定點後會待15分鐘，請問兩人會相遇的機率有多少？</p><p>A2: 假設X是小明到的時間點，Y是小華到的時間點，解 |X-Y| ≤ 1/4的面積，1-(3/4)²=7/16。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=61c9dec6ec52" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E9%9D%A2%E8%A9%A6-quantitative-finance-researcher-%E9%9D%A2%E8%A9%A6%E9%A1%8C-61c9dec6ec52">[面試] 
Quantitative Finance Researcher 面試題</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[面試] 運彩機率]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E9%9D%A2%E8%A9%A6-%E9%81%8B%E5%BD%A9%E6%A9%9F%E7%8E%87-cbd832b10786?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/cbd832b10786</guid>
            <category><![CDATA[interview]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Thu, 17 Jan 2019 12:44:36 GMT</pubDate>
            <atom:updated>2019-01-17T12:44:36.014Z</atom:updated>
            <content:encoded><![CDATA[<p>今天遇到一個有趣的面試問題跟大家分享：</p><p>假如去買運彩，冠軍四強的賠率分別是：2、3、4、5，請問莊家預期報酬的比率是多少？</p><h3>硬幣賠率問題</h3><p>要解這題前先談，先談簡單的人頭硬幣問題：如果硬幣人頭硬幣的機率都是1/2，在公平的情況下，賠率是多少？</p><p>所謂的公平就是期望值剛好等於成本。假設X等於賠率，用以下期望值公式可以算出公平的賠率：</p><p>X * P = 1 =&gt; X = (1/P)</p><p>以投硬幣的例子來說，公平的賠率是：</p><p>X = 1/(1/2) = 2</p><p>看起來很美好，但今天莊家不是來跟你玩玩而已，他是要賺利潤的，假設他每1元跟你收取r元，公式就會變成：</p><p>X*P = 1-r =&gt; X = (1-r)/P</p><p>以硬幣的例子來說，莊家1元要收你0.1元的話，他開給你的不公平賠率就是：</p><p>X = (1–0.1)/(1/2) = 1.8</p><h3>運彩賠率問題</h3><p>回答完硬幣問題，就能回答更複雜的運彩賠率問題。</p><p>用以下公式即可找出莊家心中認為每隊奪冠的機率是多少以及莊家預期能夠每元跟你賺的%數：</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/862/1*JQk0sMJ53buc1vTKK4J61w.png" /></figure><p>前四個公式跟硬幣賠率的公式一樣，最後一個公式代表冠軍一定是在這四隊其中一隊產出。</p><p>簡單推導後可以得到莊家從中獲利多少。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/804/1*QLoljcJnkFqf-7J0KcgV3g.png" /></figure><p>將賠率2、3、4、5代入公式後發現這家莊家實在太黑，硬生生給你賺22%。</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*6TSdR3-VkWYfF4po8CTV7A.png" /></figure><h3>結論</h3><p>蠻有趣的問題，但當下一時沒想出來，給完提示才勉強算出，紀錄一下，給有需要的人一點幫助。</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cbd832b10786" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/%E9%9D%A2%E8%A9%A6-%E9%81%8B%E5%BD%A9%E6%A9%9F%E7%8E%87-cbd832b10786">[面試] 運彩機率</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[Quant] Strategy Generator]]></title>
            <link>https://medium.com/portfolio-of-cb-hsu/quant-strategy-generator-2725e2b58c64?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/2725e2b58c64</guid>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Thu, 03 Jan 2019 13:44:50 GMT</pubDate>
            <atom:updated>2019-01-03T13:44:50.222Z</atom:updated>
            <content:encoded><![CDATA[<h4>A system which can generate the good-quality strategy.</h4><h3>Technology</h3><p>Python/Pyalgotrade/Numpy/Pandas/Multiprocessing/TA-LIB</p><h3>Motivation</h3><p>Situation: Indicators are the basic of the strategies.</p><p>Problem: There are too many indicators, with different parameters.</p><p>Goal: To build up a strategy generator system, which can generate the proper strategies with the proper parameters.</p><h3>Description</h3><h4>Overview</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LoScnn7_xLGMonlZQrJ-uw.png" /></figure><h4>Strategy Factory</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Y1hEoUuL6fR6-9fakEb5cA.png" /></figure><h4>Walk Forward</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yg5kj28Jb40Ka9xIfschZg.png" /></figure><h4>Result</h4><p>Setting:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*Eu0WdMeSF5Nq2_LTZyKJOg.png" /></figure><p>Portfolio:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*PUjV4GREabpof8_4" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2725e2b58c64" width="1" height="1" alt=""><hr><p><a href="https://medium.com/portfolio-of-cb-hsu/quant-strategy-generator-2725e2b58c64">[Quant] Strategy Generator</a> was originally published in <a href="https://medium.com/portfolio-of-cb-hsu">Portfolio of CB Hsu</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[C++筆記] 拷貝建構式(Copy Constructor) & 複製指派運算子(Copy Assignment Operator)]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E6%8B%B7%E8%B2%9D%E5%BB%BA%E6%A7%8B%E5%BC%8F-copy-constructor-%E8%A4%87%E8%A3%BD%E6%8C%87%E6%B4%BE%E9%81%8B%E7%AE%97%E5%AD%90-copy-assignment-operator-66ee6ae140e8?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/66ee6ae140e8</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Mon, 29 Oct 2018 16:01:28 GMT</pubDate>
            <atom:updated>2018-10-29T16:01:28.147Z</atom:updated>
            <content:encoded><![CDATA[<p>很容易搞混的兩種運用</p><h3>比較</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*osUChreU2Y4DO1EjBzt9Kg.png" /></figure><h3>例子</h3><h4>Copy Constructor</h4><pre>T::T(const T&amp; t)<br>{<br>     hours = t.hours;<br>     minutes = t.minutes;<br>     len = t.len;<br>     str = new char [len+1];<br>     //this is why we should implement the copy constructor<br>}</pre><pre>--------------------- <br>作者：Hosea14 <br>来源：CSDN <br>原文：<a href="https://blog.csdn.net/bangdingshouji/article/details/72870027">https://blog.csdn.net/bangdingshouji/article/details/72870027</a> <br>版权声明：本文为博主原创文章，转载请附上博文链接！</pre><h4>Copy Assignment Operator</h4><pre>T&amp; T::operator=(const T&amp; t)<br>{<br>     if(this == &amp;t)//check if the sample address(it means the sample variable)<br>          return *this;</pre><pre>     delete []str;<br>     //you also can check the string.len if not enough<br>     len = new char [len+1];</pre><pre>     std:strcpy(str, t.str);<br>     hours = t.hours;<br>     minutes = t.minutes;<br>     return *this;<br>}<br>--------------------- <br>作者：Hosea14 <br>来源：CSDN <br>原文：<a href="https://blog.csdn.net/bangdingshouji/article/details/72870027">https://blog.csdn.net/bangdingshouji/article/details/72870027</a> <br>版权声明：本文为博主原创文章，转载请附上博文链接！</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=66ee6ae140e8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E6%8B%B7%E8%B2%9D%E5%BB%BA%E6%A7%8B%E5%BC%8F-copy-constructor-%E8%A4%87%E8%A3%BD%E6%8C%87%E6%B4%BE%E9%81%8B%E7%AE%97%E5%AD%90-copy-assignment-operator-66ee6ae140e8">[C++筆記] 拷貝建構式(Copy Constructor) &amp; 複製指派運算子(Copy Assignment Operator)</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[C++筆記] 建構函式的順序]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E5%BB%BA%E6%A7%8B%E5%87%BD%E5%BC%8F%E7%9A%84%E9%A0%86%E5%BA%8F-10a06f05c4f7?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/10a06f05c4f7</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Mon, 29 Oct 2018 14:20:10 GMT</pubDate>
            <atom:updated>2018-10-29T14:20:10.005Z</atom:updated>
            <content:encoded><![CDATA[<h3>範例</h3><pre>class A  <br>{  <br>public:  <br>   A() : _n(1)  <br>   {  <br>   }  <br>  <br>protected:  <br>   int _n;  <br>};  <br>  <br>class B : public A  <br>{  <br>public:  <br>   B() : _m(_n)  <br>   {  <br>   }  <br>private:  <br>   int _m;  <br>};</pre><ol><li>呼叫基底Class A，初始化_n為1</li><li>看Class B的初始清單，初始化_m為_n</li><li>執行Class B的主體</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=10a06f05c4f7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E5%BB%BA%E6%A7%8B%E5%87%BD%E5%BC%8F%E7%9A%84%E9%A0%86%E5%BA%8F-10a06f05c4f7">[C++筆記] 建構函式的順序</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[C++ 筆記] 朋友函式(Friend Function)、朋友類別(Friend Class)]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E6%9C%8B%E5%8F%8B%E5%87%BD%E5%BC%8F-friend-function-%E6%9C%8B%E5%8F%8B%E9%A1%9E%E5%88%A5-friend-class-29eaff40d3a8?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/29eaff40d3a8</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Mon, 29 Oct 2018 14:02:34 GMT</pubDate>
            <atom:updated>2018-10-29T14:02:34.098Z</atom:updated>
            <content:encoded><![CDATA[<p>兒子不能用Private，朋友可以</p><pre>class Ball;<br><br>int compare(Ball&amp;, Ball&amp;);<br><br>class Ball { <br>public: <br>    ....<br>    <br>    // 宣告朋友類別<br>    friend class SomeClass;<br>    // 宣告朋友函式<br>    friend int compare(Ball&amp;, Ball&amp;);<br>private:<br>    ....<br>};</pre><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=29eaff40d3a8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E6%9C%8B%E5%8F%8B%E5%87%BD%E5%BC%8F-friend-function-%E6%9C%8B%E5%8F%8B%E9%A1%9E%E5%88%A5-friend-class-29eaff40d3a8">[C++ 筆記] 朋友函式(Friend Function)、朋友類別(Friend Class)</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[[C++筆記] 建構式(Constructor)、解構式(Destructor)、拷貝建構式(Copy Constructor)]]></title>
            <link>https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E5%BB%BA%E6%A7%8B%E5%BC%8F-constructor-%E8%A7%A3%E6%A7%8B%E5%BC%8F-destructor-%E6%8B%B7%E8%B2%9D%E5%BB%BA%E6%A7%8B%E5%BC%8F-copy-constructor-aaf272c9dd7f?source=rss-85c5f10dd427------2</link>
            <guid isPermaLink="false">https://medium.com/p/aaf272c9dd7f</guid>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[CB Hsu]]></dc:creator>
            <pubDate>Mon, 29 Oct 2018 13:49:15 GMT</pubDate>
            <atom:updated>2018-10-29T13:49:15.799Z</atom:updated>
            <content:encoded><![CDATA[<h3>寫法</h3><pre>class Line<br>{<br>  Line( int len );         // 建構式<br>  Line( const Line &amp;obj);  // 拷貝建構式<br>  ~Line();                 // 解構式<br>}</pre><h3>範例</h3><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fde827b2a29551882841fe46948035e1/href">https://medium.com/media/fde827b2a29551882841fe46948035e1/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aaf272c9dd7f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF/c-%E7%AD%86%E8%A8%98-%E5%BB%BA%E6%A7%8B%E5%BC%8F-constructor-%E8%A7%A3%E6%A7%8B%E5%BC%8F-destructor-%E6%8B%B7%E8%B2%9D%E5%BB%BA%E6%A7%8B%E5%BC%8F-copy-constructor-aaf272c9dd7f">[C++筆記] 建構式(Constructor)、解構式(Destructor)、拷貝建構式(Copy Constructor)</a> was originally published in <a href="https://medium.com/%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%9A%84%E8%B5%B7%E9%BB%9E-%E9%82%81%E5%90%91%E9%87%8F%E5%8C%96%E4%BA%A4%E6%98%93%E7%85%89%E9%87%91%E8%A1%93%E5%B8%AB%E4%B9%8B%E8%B7%AF">量化交易的起點: 邁向量化交易煉金術師之路</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>