<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Analytix</title>
    <description>Tricks and Thoughts</description>
    <link>https://ahmetcecen.com/blog/</link>
    <atom:link href="https://ahmetcecen.com/blog/feed.xml" rel="self" type="application/rss+xml" />
    <pubDate>Sat, 18 Mar 2023 07:08:42 +0000</pubDate>
    <lastBuildDate>Sat, 18 Mar 2023 07:08:42 +0000</lastBuildDate>
    <generator>Jekyll v3.9.3</generator>
    
      <item>
        <title>Regular 2pt Statistics PCA on Half Vortex</title>
        <description>
</description>
        <pubDate>Thu, 09 Mar 2017 00:00:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/rotstats/2017/03/09/Half-Vortex-PCA-Regular/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/rotstats/2017/03/09/Half-Vortex-PCA-Regular/</guid>
        
        <category>projector</category>
        
        <category>visualization</category>
        
        
        <category>rotstats</category>
        
      </item>
    
      <item>
        <title>Regular 2pt Statistics PCA on Full Vortex</title>
        <description>
</description>
        <pubDate>Thu, 09 Mar 2017 00:00:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/rotstats/2017/03/09/Full-Vortex-PCA-Regular/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/rotstats/2017/03/09/Full-Vortex-PCA-Regular/</guid>
        
        <category>projector</category>
        
        <category>visualization</category>
        
        
        <category>rotstats</category>
        
      </item>
    
      <item>
        <title>Regular 2pt Statistics PCA on 20 Class Dataset</title>
        <description>
</description>
        <pubDate>Tue, 07 Mar 2017 00:00:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/rotstats/2017/03/07/RotStats-PCA-Regular/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/rotstats/2017/03/07/RotStats-PCA-Regular/</guid>
        
        <category>projector</category>
        
        <category>visualization</category>
        
        
        <category>rotstats</category>
        
      </item>
    
      <item>
        <title>Partial Fourier Basis Complex Polar 2pt Statistics PCA on 20 Class Dataset</title>
        <description>
</description>
        <pubDate>Tue, 07 Mar 2017 00:00:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/rotstats/2017/03/07/RotStats-PCA-Polar-Regular/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/rotstats/2017/03/07/RotStats-PCA-Polar-Regular/</guid>
        
        <category>projector</category>
        
        <category>visualization</category>
        
        
        <category>rotstats</category>
        
      </item>
    
      <item>
        <title>Partial Fourier Basis Absolute Polar 2pt Statistics PCA on 20 Class Dataset</title>
        <description>
</description>
        <pubDate>Tue, 07 Mar 2017 00:00:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/rotstats/2017/03/07/RotStats-PCA-Polar-Absolute/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/rotstats/2017/03/07/RotStats-PCA-Polar-Absolute/</guid>
        
        <category>projector</category>
        
        <category>visualization</category>
        
        
        <category>rotstats</category>
        
      </item>
    
      <item>
        <title>Brief Visual Explanation of PCA</title>
        <description>Why do we use PCA?


  Objective and hierarchical identification of most characteristic features.
  Features are independent and uninformed.


PCA is an orthogonal coordinate system transformation that prioritizes maximum variance.

Here what that statement looks like in 2D.



The following is a 3D example showing the same effect in a different sense.


</description>
        <pubDate>Tue, 04 Oct 2016 11:00:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/class/2016/10/04/PCA/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/class/2016/10/04/PCA/</guid>
        
        <category>class</category>
        
        <category>materials-informatics</category>
        
        
        <category>class</category>
        
      </item>
    
      <item>
        <title>Filtering and Fourier Transform</title>
        <description>Fourier Space Filtering

Filtering in real space can be represented by the following relationship:

\[Filtered Image = Cx\]

Where $x$ is the filter, and $C$ is a circulant matrix constructed using the input image. For a simple example let us assume the input image and filter are 1D. The matrix $C$ is constructed by shifting the image periodically once at each row. Notice below the 1D image starts with the green pixel and ends with the red, and repeatedly shifted to produce the matrix $C$. The vectors corresponding to these shifts are illustrated to the left. Convince yourself the multiplication in the image below is equivalent to filtering of the 1D image at the first row of the matrix with the yellow filter.



Any circulant matrix 



 can be diagonalized by the Fourier matrix F as:








Read DFT Matrix and convolution theorem from Wikipedia if you are interested in understanding why this is so.

This fact can be exploited to achieve multiplication of a vector with 



 in O(nlogn) time using FFT. The following scheme can be used for this purpose, where 



 is the first column 



 and 



 is a vector containing the main diagonal of 



:





















where 



 is element-wise multiplication. Notice the above algortihm is actually the Convolution Theorem in disguise, where 



 is the Fourier Transform operator:







The mirror mismatch between convolution and correlation operations can be accounted for by conjugation of the filter in Fourier space.
</description>
        <pubDate>Tue, 04 Oct 2016 10:50:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/class/2016/10/04/FiltandFFT/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/class/2016/10/04/FiltandFFT/</guid>
        
        <category>class</category>
        
        <category>materials-informatics</category>
        
        
        <category>class</category>
        
      </item>
    
      <item>
        <title>2-Point Statistics &amp; Filtering</title>
        <description>Graphical Explanation of Filtering

Let us assume we have the following matrix, or image.



We are interested using this filter on our image.



A filter is applied on an image by placing it centered at every possible location on an image, multiplying the values of the filter and the current subsection of the image corresponding to the location of the filter. The multiplied values are then summed up and the resulting value is placed at the pixel the filter was centered on.

Here is a detailed graphic of a single step.



Repeat this for every pixel.



How do we deal with the boundaries? Many ways, but for our purposes, we will either assume that one end of the image is connected to the other (periodic boundary) or there is nothing (zeros) beyond the boundary (non-periodic boundary).



Filtering for 2-Point Statistics

For efficient calculation of 2-point statistics, we use the image itself (phase of interest marked with 1s, all other phases marked with 0s) as both the input and the filter.  Graphical examples of how this would work are given below for 2 vectors.

One step.



Another step.



It follows that the resulting matrix will give us the counts of succesful trials in the frequentist definition of 2-point statistics, for each vector. Normalization will yield the actual frequencies.
</description>
        <pubDate>Tue, 04 Oct 2016 10:40:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/class/2016/10/04/Filtering/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/class/2016/10/04/Filtering/</guid>
        
        <category>class</category>
        
        <category>materials-informatics</category>
        
        
        <category>class</category>
        
      </item>
    
      <item>
        <title>Understanding 2-Point Statistics</title>
        <description>Frequentist Approach


  If I threw a particular vector at every possible location in this image, what fraction of them will land both on white pixels.




Bayesian Approach


  I have a paper with 2 holes in it seperated by a particular vector. If I put this paper on a random location on top of the image, what is the probability that I will see a white pixel on both holes, given both holes reside within the image.





  
Your browser does not support the video tag.


Topological Approach


  Normally, the location of each pixel in the image is described by a vector from the x axis, and a vector from the y axis. If I instead describe each white point, by vectors from every other white point in the image, how many times would I observe a particular vector (normalized by the number of points/vectors).




</description>
        <pubDate>Tue, 04 Oct 2016 10:30:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/class/2016/10/04/2-point-tutorial/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/class/2016/10/04/2-point-tutorial/</guid>
        
        <category>class</category>
        
        <category>materials-informatics</category>
        
        
        <category>class</category>
        
      </item>
    
      <item>
        <title>Example Patterns</title>
        <description>Carbon Fiber



Crystalline Polymer



Amorphous Polymer



Kikuchi Pattern



Wood



Circular Mesh


</description>
        <pubDate>Fri, 26 Aug 2016 00:00:00 +0000</pubDate>
        <link>https://ahmetcecen.com/blog/class/2016/08/26/example-patterns/</link>
        <guid isPermaLink="true">https://ahmetcecen.com/blog/class/2016/08/26/example-patterns/</guid>
        
        <category>example</category>
        
        <category>demo</category>
        
        
        <category>class</category>
        
      </item>
    
  </channel>
</rss>
