ʻOhana
Population structure, admixture history, and selection using learning methods.
Public Member Functions | Data Fields
jade::basic_neoscan< TValue >::output Struct Reference

Output for one column. More...

#include <jade.neoscan.hpp>

+ Collaboration diagram for jade::basic_neoscan< TValue >::output:

Public Member Functions

value_type compute_lle_ratio () const
 
std::string to_string () const
 Returns the delta, global_lle, local_lle, and computed log-likelihood ratio converted to high-precision strings and joined by the tab character. The returned string does not include and end-of-line character. More...
 

Data Fields

value_type delta
 The delta. More...
 
value_type global_lle
 The global lle. More...
 
value_type local_lle
 The local lle. More...
 

Detailed Description

template<typename TValue>
struct jade::basic_neoscan< TValue >::output

Output for one column.

Definition at line 48 of file jade.neoscan.hpp.

Member Function Documentation

◆ compute_lle_ratio()

template<typename TValue >
value_type jade::basic_neoscan< TValue >::output::compute_lle_ratio ( ) const
inline
Returns
The computed log-likelihood ratio, i.e. 2.0 * (local_lle - global_lle).

Definition at line 58 of file jade.neoscan.hpp.

59  {
60  return value_type(2.0) * (local_lle - global_lle);
61  }
+ Here is the caller graph for this function:

◆ to_string()

template<typename TValue >
std::string jade::basic_neoscan< TValue >::output::to_string ( ) const
inline

Returns the delta, global_lle, local_lle, and computed log-likelihood ratio converted to high-precision strings and joined by the tab character. The returned string does not include and end-of-line character.

Returns
A string representing the output values.

Definition at line 71 of file jade.neoscan.hpp.

72  {
73  std::ostringstream out;
75  out << std::showpos
76  << delta << '\t'
77  << global_lle << '\t'
78  << local_lle << '\t'
79  << compute_lle_ratio();
80  return out.str();
81  }
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Field Documentation

◆ delta

template<typename TValue >
value_type jade::basic_neoscan< TValue >::output::delta

The delta.

Definition at line 50 of file jade.neoscan.hpp.

◆ global_lle

template<typename TValue >
value_type jade::basic_neoscan< TValue >::output::global_lle

The global lle.

Definition at line 51 of file jade.neoscan.hpp.

◆ local_lle

template<typename TValue >
value_type jade::basic_neoscan< TValue >::output::local_lle

The local lle.

Definition at line 52 of file jade.neoscan.hpp.


The documentation for this struct was generated from the following file:
jade::basic_neoscan::output::compute_lle_ratio
value_type compute_lle_ratio() const
Definition: jade.neoscan.hpp:58
jade::basic_neoscan::output::global_lle
value_type global_lle
The global lle.
Definition: jade.neoscan.hpp:51
jade::basic_matrix< value_type >::set_high_precision
static void set_high_precision(std::ostream &out)
Sets the specified stream to scientific notation with a high precision.
Definition: jade.matrix.hpp:1154
jade::basic_neoscan::value_type
TValue value_type
The value type.
Definition: jade.neoscan.hpp:29
jade::basic_neoscan::output::local_lle
value_type local_lle
The local lle.
Definition: jade.neoscan.hpp:52
jade::basic_neoscan::output::delta
value_type delta
The delta.
Definition: jade.neoscan.hpp:50