Skip to content

Commit

Permalink
Added IDs to DataFrame.html
Browse files Browse the repository at this point in the history
  • Loading branch information
hosseinmoein committed Jul 21, 2024
1 parent 4ebeb22 commit 7b6d960
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions docs/HTML/DataFrame.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@

<BR><a href="https://github.com/hosseinmoein/DataFrame?tab=readme-ov-file">&#8592; Back to Github</a><BR>

<H2><font color="blue">Summary</font></H2>
<H2 ID="1"><font color="blue">Summary</font></H2>
<P>
<font size="+1">DataFrame</font> is a templatized and heterogeneous C++ container designed for data analysis for statistical, machine-learning, or financial applications. You can think of data-frame as a two-dimensional data structure of columns and rows just like an Excel spreadsheet, or a SQL table. But in case of C++ DataFrame, your data needn't be two-dimensional necessarily. Columns in the C++ DataFrame could be vectors of any type, including DataFrames or other containers. So, a C++ DataFrame can be of any dimension. That's the logical layout of the data. C++ DataFrame also includes an intuitive API for data analysis and analytics. The API is designed to be open-ended meaning you can easily include your own custom algorithms.<BR>
Any data-frame inherently includes a schema. C++ DataFrame schema is either built dynamically at run-time or it comes from a file. Currently C++ DataFrame could be shared between different nodes (e.g. computers) in a couple of ways. It can be written into a file, or it can be serialized into a buffer and sent across and reconstituted on the other side.
Expand Down Expand Up @@ -120,7 +120,7 @@ <H2><font color="blue">Summary</font></H2>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">API Reference with code samples</font></H2>
<H2 ID="2"><font color="blue">API Reference with code samples</font></H2>
DataFrame library interface is separated into two main categories:
<OL>
<LI>Accessing, adding, slicing &amp; dicing, joining &amp; groupby'ing ... <B>(The first column in the table below)</B></LI>
Expand Down Expand Up @@ -1471,7 +1471,7 @@ <H2><font color="blue">API Reference with code samples</font></H2>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">Multithreading</font></H2>
<H2 ID="3"><font color="blue">Multithreading</font></H2>
In general, multithreading could be very unintuitive. Often you think by using multithreading you enhance the performance of your program. But in fact, you are hindering it. To do effective multithreading, you must do two things repeatedly; measure and adjust. In general (rule of thumb), you should use multithreading in two contradictory situations. First, when you have intensive CPU-bound operations like mathematical equations that can independently utilize different cores. Second, when you have multiple I/O-bound operations that can go on independently while they wait for each other. The key word here is <I>independently</I>. You must also realize that multithreading has an inherent overhead that not only affects your process but also other processes running on the same node. It is recommended to start with a single-threaded version and when that is <I>working correctly</I>, establish a baseline, take measurements, and implement a multithreaded solution.<BR>
DataFrame uses multithreading extensively and provides granular tools to adjust your environment. Let's divide the multithreading subject in DataFrame into two categories:<BR>

Expand All @@ -1492,7 +1492,7 @@ <H4>2. DataFrame Internal Multithreading</H4>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">Views</font></H2>
<H2 ID="4"><font color="blue">Views</font></H2>
<P>
Views have useful and practical use-cases. A view is a slice of a DataFrame that is a reference to the original DataFrame. It appears exactly the same as a DataFrame, but if you modify any data in the view, the corresponding data point(s) in the original DataFrame will also be modified and vice versa. There are certain things you cannot do in views. For example, you cannot add or delete columns, extend the index column, ...<BR><BR>

Expand All @@ -1514,7 +1514,7 @@ <H2><font color="blue">Views</font></H2>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">Visitors</font></H2>
<H2 ID="5"><font color="blue">Visitors</font></H2>
<P>
Visitors are the main mechanism to implement analytical (i.e. statistical, financial, machine-learning) algorithms. You can easily follow the visitor's interface to add your custom algorithm by which you will extend the DataFrame package. Visitors also play several roles that in other packages maybe handled by separate interfaces. Visitors play the role of <I>apply</I>, <I>transformer</I>, and <I>algorithms</I>. For example, a visitor can transform column(s) or it may take the column(s) as read-only and implement an algorithm.<BR>
There are two visitor interfaces:<BR>
Expand Down Expand Up @@ -1543,7 +1543,7 @@ <H2><font color="blue">Visitors</font></H2>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">Memory Alignment</font></H2>
<H2 ID="6"><font color="blue">Memory Alignment</font></H2>
<P>
DataFrame gives you the ability to allocate memory on custom alignment boundaries.<BR>
You can use this feature to take advantage of <I>SIMD</I> instructions in modern CPU's. Since DataFrame algorithms are all done on vectors of data &#8212; columns, this can come handy in conjunction with compiler optimizations. Also, you can use alignment to prevent false cache-line sharing between multiple columns.<BR>
Expand All @@ -1553,7 +1553,7 @@ <H2><font color="blue">Memory Alignment</font></H2>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">Numeric Generators</font></H2>
<H2 ID="7"><font color="blue">Numeric Generators</font></H2>
<P>
Random generators, and a few other numeric generators, were added as a series of convenient stand-alone functions to generate random numbers (it covers all C++ standard distributions). You can seamlessly use these routines to generate random DataFrame columns.<BR>
See this document and file <I>RandGen.h</I> and <I>dataframe_tester.cc.</I>
Expand All @@ -1562,7 +1562,7 @@ <H2><font color="blue">Numeric Generators</font></H2>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">Code Structure</font></H2>
<H2 ID="8"><font color="blue">Code Structure</font></H2>
<P>
The DataFrame library is <I>almost</I> a header-only library. Currently the only library source file is <I>DateTime.cc.</I><BR>
<BR>
Expand All @@ -1577,7 +1577,7 @@ <H2><font color="blue">Code Structure</font></H2>

<BR><HR COLOR="Gray" SIZE="5">

<H2><font color="blue">Build Instructions</font></H2>
<H2 ID="9"><font color="blue">Build Instructions</font></H2>
<P>
<font size="+1"><B>Using plain make and make-files:</B></font><BR>
Go to the <I>src</I> subdirectory, and execute build_all.sh. This will build the library and test executables for <I>Linux/Unix flavors only</I><BR>
Expand Down

0 comments on commit 7b6d960

Please sign in to comment.