# Analyzing and visualizing results

Once a set of operations have been computed on a time-series dataset, the results are stored in a local **HCTSA.mat** file. The result can be used to perform a wide variety of highly comparative analyses, such as those outlined in [our paper](http://rsif.royalsocietypublishing.org/content/10/83/20130048.full).

The type of analysis employed should the be motivated by the specific time-series analysis task at hand. Setting up the problem, guiding the methodology, and interpreting the results requires strong scientific input that should draw on domain knowledge, including the questions asked of the data, experience performing data analysis, and statistical considerations.

The first main component of an *hctsa* analysis involves filtering and normalizing the data using `TS_Normalize`, described [here](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/filtering_and_normalizing), which produces a file called **HCTSA\_N.mat**. Information about the similarity of pairs of time series and operations can be computed using `TS_Cluster`, described [here](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/clustering_rows_and_columns) which stores this information in **HCTSA\_N.mat**. The suite of plotting and analysis tools that we provide with *hctsa* work with this normalized data, stored in **HCTSA\_N.mat**, by default.

## Plotting and analysis functions:

* Visualizing structure in the data matrix using [`TS_PlotDataMatrix`](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/visualizing_the_data_matrix).
* Visualizing the time-series traces using [`TS_PlotTimeSeries`](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/plotting_the_time_series).
* Visualizing low-dimensional structure in the data using [`TS_PlotLowDim`](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/low_dim).
* Exploring similar matches to a target time series using [`TS_SimSearch`](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/sim_search).
* Visualizing the behavior of a given operation across the time-series dataset using [`TS_FeatureSummary`](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/feature_summary).

## Tools for classification tasks:

For time-series classification tasks, groups of time series can be labeled using the `TS_LabelGroups` function described [here](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/grouping); this group label information is stored in the local **HCTSA\*.mat** file, and used by default in the various plotting and analysis functions provided. Additional analysis functions are provided for basic time-series classification tasks:

* Explore the classification performance of the full library of features using [`TS_Classify`](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/ts_classify)
* Determine the features that (individually) best distinguish between the labeled groups using [`TS_TopFeatures`](https://time-series-features.gitbook.io/hctsa-manual/installing-and-using-hctsa/analyzing_visualizing/ts_topfeatures)
