Added Doxygen docs
This commit is contained in:
399
docs/xml/Doxyfile.xml
Normal file
399
docs/xml/Doxyfile.xml
Normal file
@ -0,0 +1,399 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxyfile xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="doxyfile.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<option id='DOXYFILE_ENCODING' default='yes' type='string'><value><![CDATA[UTF-8]]></value></option>
|
||||
<option id='PROJECT_NAME' default='no' type='string'><value><![CDATA["Exponential Functions"]]></value></option>
|
||||
<option id='PROJECT_NUMBER' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='PROJECT_BRIEF' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='PROJECT_LOGO' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='OUTPUT_DIRECTORY' default='no' type='string'><value><![CDATA[G:/Dev/Exponential/docs]]></value></option>
|
||||
<option id='CREATE_SUBDIRS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='CREATE_SUBDIRS_LEVEL' default='yes' type='int'><value>8</value></option>
|
||||
<option id='ALLOW_UNICODE_NAMES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='OUTPUT_LANGUAGE' default='yes' type='string'><value>English</value></option>
|
||||
<option id='BRIEF_MEMBER_DESC' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='REPEAT_BRIEF' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='ABBREVIATE_BRIEF' default='yes' type='stringlist'>
|
||||
<value><![CDATA["The $name class"]]></value>
|
||||
<value><![CDATA["The $name widget"]]></value>
|
||||
<value><![CDATA["The $name file"]]></value>
|
||||
<value><![CDATA[is]]></value>
|
||||
<value><![CDATA[provides]]></value>
|
||||
<value><![CDATA[specifies]]></value>
|
||||
<value><![CDATA[contains]]></value>
|
||||
<value><![CDATA[represents]]></value>
|
||||
<value><![CDATA[a]]></value>
|
||||
<value><![CDATA[an]]></value>
|
||||
<value><![CDATA[the]]></value>
|
||||
</option>
|
||||
<option id='ALWAYS_DETAILED_SEC' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='INLINE_INHERITED_MEMB' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='FULL_PATH_NAMES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='STRIP_FROM_PATH' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='STRIP_FROM_INC_PATH' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='SHORT_NAMES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='JAVADOC_AUTOBRIEF' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='JAVADOC_BANNER' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='QT_AUTOBRIEF' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='MULTILINE_CPP_IS_BRIEF' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='PYTHON_DOCSTRING' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='INHERIT_DOCS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SEPARATE_MEMBER_PAGES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='TAB_SIZE' default='yes' type='int'><value>4</value></option>
|
||||
<option id='ALIASES' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='OPTIMIZE_OUTPUT_FOR_C' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='OPTIMIZE_OUTPUT_JAVA' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='OPTIMIZE_FOR_FORTRAN' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='OPTIMIZE_OUTPUT_VHDL' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='OPTIMIZE_OUTPUT_SLICE' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTENSION_MAPPING' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='MARKDOWN_SUPPORT' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='TOC_INCLUDE_HEADINGS' default='yes' type='int'><value>5</value></option>
|
||||
<option id='MARKDOWN_ID_STYLE' default='yes' type='string'><value>DOXYGEN</value></option>
|
||||
<option id='AUTOLINK_SUPPORT' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='BUILTIN_STL_SUPPORT' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='CPP_CLI_SUPPORT' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SIP_SUPPORT' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='IDL_PROPERTY_SUPPORT' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='DISTRIBUTE_GROUP_DOC' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GROUP_NESTED_COMPOUNDS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SUBGROUPING' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='INLINE_GROUPED_CLASSES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='INLINE_SIMPLE_STRUCTS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='TYPEDEF_HIDES_STRUCT' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='LOOKUP_CACHE_SIZE' default='yes' type='int'><value>0</value></option>
|
||||
<option id='NUM_PROC_THREADS' default='yes' type='int'><value>1</value></option>
|
||||
<option id='TIMESTAMP' default='yes' type='string'><value>NO</value></option>
|
||||
<option id='EXTRACT_ALL' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTRACT_PRIVATE' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTRACT_PRIV_VIRTUAL' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTRACT_PACKAGE' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTRACT_STATIC' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTRACT_LOCAL_CLASSES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='EXTRACT_LOCAL_METHODS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTRACT_ANON_NSPACES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='RESOLVE_UNNAMED_PARAMS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='HIDE_UNDOC_MEMBERS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='HIDE_UNDOC_CLASSES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='HIDE_FRIEND_COMPOUNDS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='HIDE_IN_BODY_DOCS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='INTERNAL_DOCS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='CASE_SENSE_NAMES' default='yes' type='string'><value>SYSTEM</value></option>
|
||||
<option id='HIDE_SCOPE_NAMES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='HIDE_COMPOUND_REFERENCE' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SHOW_HEADERFILE' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SHOW_INCLUDE_FILES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SHOW_GROUPED_MEMB_INC' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='FORCE_LOCAL_INCLUDES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='INLINE_INFO' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SORT_MEMBER_DOCS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SORT_BRIEF_DOCS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SORT_MEMBERS_CTORS_1ST' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SORT_GROUP_NAMES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SORT_BY_SCOPE_NAME' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='STRICT_PROTO_MATCHING' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GENERATE_TODOLIST' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='GENERATE_TESTLIST' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='GENERATE_BUGLIST' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='GENERATE_DEPRECATEDLIST' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='ENABLED_SECTIONS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='MAX_INITIALIZER_LINES' default='yes' type='int'><value>30</value></option>
|
||||
<option id='SHOW_USED_FILES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SHOW_FILES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SHOW_NAMESPACES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='FILE_VERSION_FILTER' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='LAYOUT_FILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='CITE_BIB_FILES' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='QUIET' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='WARNINGS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='WARN_IF_UNDOCUMENTED' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='WARN_IF_DOC_ERROR' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='WARN_IF_INCOMPLETE_DOC' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='WARN_NO_PARAMDOC' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='WARN_IF_UNDOC_ENUM_VAL' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='WARN_AS_ERROR' default='yes' type='string'><value>NO</value></option>
|
||||
<option id='WARN_FORMAT' default='yes' type='string'><value><![CDATA["$file:$line: $text"]]></value></option>
|
||||
<option id='WARN_LINE_FORMAT' default='yes' type='string'><value><![CDATA["at line $line of file $file"]]></value></option>
|
||||
<option id='WARN_LOGFILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='INPUT' default='no' type='stringlist'>
|
||||
<value><![CDATA[G:/Dev/Exponential/Exponential]]></value>
|
||||
</option>
|
||||
<option id='INPUT_ENCODING' default='yes' type='string'><value><![CDATA[UTF-8]]></value></option>
|
||||
<option id='INPUT_FILE_ENCODING' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='FILE_PATTERNS' default='yes' type='stringlist'>
|
||||
<value><![CDATA[*.c]]></value>
|
||||
<value><![CDATA[*.cc]]></value>
|
||||
<value><![CDATA[*.cxx]]></value>
|
||||
<value><![CDATA[*.cxxm]]></value>
|
||||
<value><![CDATA[*.cpp]]></value>
|
||||
<value><![CDATA[*.cppm]]></value>
|
||||
<value><![CDATA[*.c++]]></value>
|
||||
<value><![CDATA[*.c++m]]></value>
|
||||
<value><![CDATA[*.java]]></value>
|
||||
<value><![CDATA[*.ii]]></value>
|
||||
<value><![CDATA[*.ixx]]></value>
|
||||
<value><![CDATA[*.ipp]]></value>
|
||||
<value><![CDATA[*.i++]]></value>
|
||||
<value><![CDATA[*.inl]]></value>
|
||||
<value><![CDATA[*.idl]]></value>
|
||||
<value><![CDATA[*.ddl]]></value>
|
||||
<value><![CDATA[*.odl]]></value>
|
||||
<value><![CDATA[*.h]]></value>
|
||||
<value><![CDATA[*.hh]]></value>
|
||||
<value><![CDATA[*.hxx]]></value>
|
||||
<value><![CDATA[*.hpp]]></value>
|
||||
<value><![CDATA[*.h++]]></value>
|
||||
<value><![CDATA[*.ixx]]></value>
|
||||
<value><![CDATA[*.l]]></value>
|
||||
<value><![CDATA[*.cs]]></value>
|
||||
<value><![CDATA[*.d]]></value>
|
||||
<value><![CDATA[*.php]]></value>
|
||||
<value><![CDATA[*.php4]]></value>
|
||||
<value><![CDATA[*.php5]]></value>
|
||||
<value><![CDATA[*.phtml]]></value>
|
||||
<value><![CDATA[*.inc]]></value>
|
||||
<value><![CDATA[*.m]]></value>
|
||||
<value><![CDATA[*.markdown]]></value>
|
||||
<value><![CDATA[*.md]]></value>
|
||||
<value><![CDATA[*.mm]]></value>
|
||||
<value><![CDATA[*.dox]]></value>
|
||||
<value><![CDATA[*.py]]></value>
|
||||
<value><![CDATA[*.pyw]]></value>
|
||||
<value><![CDATA[*.f90]]></value>
|
||||
<value><![CDATA[*.f95]]></value>
|
||||
<value><![CDATA[*.f03]]></value>
|
||||
<value><![CDATA[*.f08]]></value>
|
||||
<value><![CDATA[*.f18]]></value>
|
||||
<value><![CDATA[*.f]]></value>
|
||||
<value><![CDATA[*.for]]></value>
|
||||
<value><![CDATA[*.vhd]]></value>
|
||||
<value><![CDATA[*.vhdl]]></value>
|
||||
<value><![CDATA[*.ucf]]></value>
|
||||
<value><![CDATA[*.qsf]]></value>
|
||||
<value><![CDATA[*.ice]]></value>
|
||||
</option>
|
||||
<option id='RECURSIVE' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXCLUDE' default='no' type='stringlist'>
|
||||
<value><![CDATA[G:/Dev/Exponential/Exponential/Timer.h]]></value>
|
||||
</option>
|
||||
<option id='EXCLUDE_SYMLINKS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXCLUDE_PATTERNS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='EXCLUDE_SYMBOLS' default='no' type='stringlist'>
|
||||
<value><![CDATA[*::detail::*]]></value>
|
||||
<value><![CDATA[detail::*]]></value>
|
||||
</option>
|
||||
<option id='EXAMPLE_PATH' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='EXAMPLE_PATTERNS' default='yes' type='stringlist'>
|
||||
<value><![CDATA[*]]></value>
|
||||
</option>
|
||||
<option id='EXAMPLE_RECURSIVE' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='IMAGE_PATH' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='INPUT_FILTER' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='FILTER_PATTERNS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='FILTER_SOURCE_FILES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='FILTER_SOURCE_PATTERNS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='USE_MDFILE_AS_MAINPAGE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='FORTRAN_COMMENT_AFTER' default='yes' type='int'><value>72</value></option>
|
||||
<option id='SOURCE_BROWSER' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='INLINE_SOURCES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='STRIP_CODE_COMMENTS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='REFERENCED_BY_RELATION' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='REFERENCES_RELATION' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='REFERENCES_LINK_SOURCE' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SOURCE_TOOLTIPS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='USE_HTAGS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='VERBATIM_HEADERS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='CLANG_ASSISTED_PARSING' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='CLANG_ADD_INC_PATHS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='CLANG_OPTIONS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='CLANG_DATABASE_PATH' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='ALPHABETICAL_INDEX' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='IGNORE_PREFIX' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='GENERATE_HTML' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='HTML_OUTPUT' default='yes' type='string'><value><![CDATA[html]]></value></option>
|
||||
<option id='HTML_FILE_EXTENSION' default='yes' type='string'><value><![CDATA[.html]]></value></option>
|
||||
<option id='HTML_HEADER' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='HTML_FOOTER' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='HTML_STYLESHEET' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='HTML_EXTRA_STYLESHEET' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='HTML_EXTRA_FILES' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='HTML_COLORSTYLE' default='yes' type='string'><value>AUTO_LIGHT</value></option>
|
||||
<option id='HTML_COLORSTYLE_HUE' default='yes' type='int'><value>220</value></option>
|
||||
<option id='HTML_COLORSTYLE_SAT' default='yes' type='int'><value>100</value></option>
|
||||
<option id='HTML_COLORSTYLE_GAMMA' default='yes' type='int'><value>80</value></option>
|
||||
<option id='HTML_DYNAMIC_MENUS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='HTML_DYNAMIC_SECTIONS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='HTML_CODE_FOLDING' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='HTML_INDEX_NUM_ENTRIES' default='yes' type='int'><value>100</value></option>
|
||||
<option id='GENERATE_DOCSET' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='DOCSET_FEEDNAME' default='yes' type='string'><value><![CDATA["Doxygen generated docs"]]></value></option>
|
||||
<option id='DOCSET_FEEDURL' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='DOCSET_BUNDLE_ID' default='yes' type='string'><value><![CDATA[org.doxygen.Project]]></value></option>
|
||||
<option id='DOCSET_PUBLISHER_ID' default='yes' type='string'><value><![CDATA[org.doxygen.Publisher]]></value></option>
|
||||
<option id='DOCSET_PUBLISHER_NAME' default='yes' type='string'><value><![CDATA[Publisher]]></value></option>
|
||||
<option id='GENERATE_HTMLHELP' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='CHM_FILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='HHC_LOCATION' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='GENERATE_CHI' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='CHM_INDEX_ENCODING' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='BINARY_TOC' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='TOC_EXPAND' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SITEMAP_URL' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='GENERATE_QHP' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='QCH_FILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='QHP_NAMESPACE' default='yes' type='string'><value><![CDATA[org.doxygen.Project]]></value></option>
|
||||
<option id='QHP_VIRTUAL_FOLDER' default='yes' type='string'><value><![CDATA[doc]]></value></option>
|
||||
<option id='QHP_CUST_FILTER_NAME' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='QHP_CUST_FILTER_ATTRS' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='QHP_SECT_FILTER_ATTRS' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='QHG_LOCATION' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='GENERATE_ECLIPSEHELP' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='ECLIPSE_DOC_ID' default='yes' type='string'><value><![CDATA[org.doxygen.Project]]></value></option>
|
||||
<option id='DISABLE_INDEX' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GENERATE_TREEVIEW' default='no' type='bool'><value>YES</value></option>
|
||||
<option id='FULL_SIDEBAR' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='ENUM_VALUES_PER_LINE' default='yes' type='int'><value>4</value></option>
|
||||
<option id='TREEVIEW_WIDTH' default='yes' type='int'><value>250</value></option>
|
||||
<option id='EXT_LINKS_IN_WINDOW' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='OBFUSCATE_EMAILS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='HTML_FORMULA_FORMAT' default='yes' type='string'><value>png</value></option>
|
||||
<option id='FORMULA_FONTSIZE' default='yes' type='int'><value>10</value></option>
|
||||
<option id='FORMULA_MACROFILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='USE_MATHJAX' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='MATHJAX_VERSION' default='yes' type='string'><value>MathJax_2</value></option>
|
||||
<option id='MATHJAX_FORMAT' default='yes' type='string'><value>HTML-CSS</value></option>
|
||||
<option id='MATHJAX_RELPATH' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='MATHJAX_EXTENSIONS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='MATHJAX_CODEFILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='SEARCHENGINE' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='SERVER_BASED_SEARCH' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTERNAL_SEARCH' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SEARCHENGINE_URL' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='SEARCHDATA_FILE' default='yes' type='string'><value><![CDATA[searchdata.xml]]></value></option>
|
||||
<option id='EXTERNAL_SEARCH_ID' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='EXTRA_SEARCH_MAPPINGS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='GENERATE_LATEX' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='LATEX_OUTPUT' default='yes' type='string'><value><![CDATA[latex]]></value></option>
|
||||
<option id='LATEX_CMD_NAME' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='MAKEINDEX_CMD_NAME' default='yes' type='string'><value><![CDATA[makeindex]]></value></option>
|
||||
<option id='LATEX_MAKEINDEX_CMD' default='yes' type='string'><value><![CDATA[makeindex]]></value></option>
|
||||
<option id='COMPACT_LATEX' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='PAPER_TYPE' default='yes' type='string'><value>a4</value></option>
|
||||
<option id='EXTRA_PACKAGES' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='LATEX_HEADER' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='LATEX_FOOTER' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='LATEX_EXTRA_STYLESHEET' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='LATEX_EXTRA_FILES' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='PDF_HYPERLINKS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='USE_PDFLATEX' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='LATEX_BATCHMODE' default='yes' type='string'><value>NO</value></option>
|
||||
<option id='LATEX_HIDE_INDICES' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='LATEX_BIB_STYLE' default='yes' type='string'><value><![CDATA[plain]]></value></option>
|
||||
<option id='LATEX_EMOJI_DIRECTORY' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='GENERATE_RTF' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='RTF_OUTPUT' default='yes' type='string'><value><![CDATA[rtf]]></value></option>
|
||||
<option id='COMPACT_RTF' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='RTF_HYPERLINKS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='RTF_STYLESHEET_FILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='RTF_EXTENSIONS_FILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='GENERATE_MAN' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='MAN_OUTPUT' default='yes' type='string'><value><![CDATA[man]]></value></option>
|
||||
<option id='MAN_EXTENSION' default='yes' type='string'><value><![CDATA[.3]]></value></option>
|
||||
<option id='MAN_SUBDIR' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='MAN_LINKS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GENERATE_XML' default='no' type='bool'><value>YES</value></option>
|
||||
<option id='XML_OUTPUT' default='yes' type='string'><value><![CDATA[xml]]></value></option>
|
||||
<option id='XML_PROGRAMLISTING' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='XML_NS_MEMB_FILE_SCOPE' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GENERATE_DOCBOOK' default='no' type='bool'><value>YES</value></option>
|
||||
<option id='DOCBOOK_OUTPUT' default='yes' type='string'><value><![CDATA[docbook]]></value></option>
|
||||
<option id='GENERATE_AUTOGEN_DEF' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GENERATE_SQLITE3' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SQLITE3_OUTPUT' default='yes' type='string'><value><![CDATA[sqlite3]]></value></option>
|
||||
<option id='SQLITE3_RECREATE_DB' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='GENERATE_PERLMOD' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='PERLMOD_LATEX' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='PERLMOD_PRETTY' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='PERLMOD_MAKEVAR_PREFIX' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='ENABLE_PREPROCESSING' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='MACRO_EXPANSION' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXPAND_ONLY_PREDEF' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='SEARCH_INCLUDES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='INCLUDE_PATH' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='INCLUDE_FILE_PATTERNS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='PREDEFINED' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='EXPAND_AS_DEFINED' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='SKIP_FUNCTION_MACROS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='TAGFILES' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='GENERATE_TAGFILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='ALLEXTERNALS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='EXTERNAL_GROUPS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='EXTERNAL_PAGES' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='HIDE_UNDOC_RELATIONS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='HAVE_DOT' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='DOT_NUM_THREADS' default='yes' type='int'><value>0</value></option>
|
||||
<option id='DOT_COMMON_ATTR' default='yes' type='string'><value><![CDATA["fontname=Helvetica,fontsize=10"]]></value></option>
|
||||
<option id='DOT_EDGE_ATTR' default='yes' type='string'><value><![CDATA["labelfontname=Helvetica,labelfontsize=10"]]></value></option>
|
||||
<option id='DOT_NODE_ATTR' default='yes' type='string'><value><![CDATA["shape=box,height=0.2,width=0.4"]]></value></option>
|
||||
<option id='DOT_FONTPATH' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='CLASS_GRAPH' default='yes' type='string'><value>YES</value></option>
|
||||
<option id='COLLABORATION_GRAPH' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='GROUP_GRAPHS' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='UML_LOOK' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='UML_LIMIT_NUM_FIELDS' default='yes' type='int'><value>10</value></option>
|
||||
<option id='DOT_UML_DETAILS' default='yes' type='string'><value>NO</value></option>
|
||||
<option id='DOT_WRAP_THRESHOLD' default='yes' type='int'><value>17</value></option>
|
||||
<option id='TEMPLATE_RELATIONS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='INCLUDE_GRAPH' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='INCLUDED_BY_GRAPH' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='CALL_GRAPH' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='CALLER_GRAPH' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GRAPHICAL_HIERARCHY' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='DIRECTORY_GRAPH' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='DIR_GRAPH_MAX_DEPTH' default='yes' type='int'><value>1</value></option>
|
||||
<option id='DOT_IMAGE_FORMAT' default='yes' type='string'><value>png</value></option>
|
||||
<option id='INTERACTIVE_SVG' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='DOT_PATH' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='DOTFILE_DIRS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='DIA_PATH' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='DIAFILE_DIRS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='PLANTUML_JAR_PATH' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='PLANTUML_CFG_FILE' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='PLANTUML_INCLUDE_PATH' default='yes' type='stringlist'>
|
||||
</option>
|
||||
<option id='DOT_GRAPH_MAX_NODES' default='yes' type='int'><value>50</value></option>
|
||||
<option id='MAX_DOT_GRAPH_DEPTH' default='yes' type='int'><value>0</value></option>
|
||||
<option id='DOT_MULTI_TARGETS' default='yes' type='bool'><value>NO</value></option>
|
||||
<option id='GENERATE_LEGEND' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='DOT_CLEANUP' default='yes' type='bool'><value>YES</value></option>
|
||||
<option id='MSCGEN_TOOL' default='yes' type='string'><value><![CDATA[]]></value></option>
|
||||
<option id='MSCFILE_DIRS' default='yes' type='stringlist'>
|
||||
</option>
|
||||
</doxyfile>
|
628
docs/xml/_exponential_8h.xml
Normal file
628
docs/xml/_exponential_8h.xml
Normal file
@ -0,0 +1,628 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="_exponential_8h" kind="file" language="C++">
|
||||
<compoundname>Exponential.h</compoundname>
|
||||
<includes local="no">ostream</includes>
|
||||
<includes local="no">vector</includes>
|
||||
<includes local="no">float.h</includes>
|
||||
<includes local="no">random</includes>
|
||||
<includes local="no">algorithm</includes>
|
||||
<includes local="no">execution</includes>
|
||||
<includes local="no">exception</includes>
|
||||
<includedby refid="_source_8cpp" local="yes">Exponential/Source.cpp</includedby>
|
||||
<incdepgraph>
|
||||
<node id="1">
|
||||
<label>Exponential/Exponential.h</label>
|
||||
<link refid="_exponential_8h"/>
|
||||
<childnode refid="2" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="3" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="4" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="5" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="6" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="7" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="8" relation="include">
|
||||
</childnode>
|
||||
</node>
|
||||
<node id="6">
|
||||
<label>algorithm</label>
|
||||
</node>
|
||||
<node id="8">
|
||||
<label>exception</label>
|
||||
</node>
|
||||
<node id="7">
|
||||
<label>execution</label>
|
||||
</node>
|
||||
<node id="4">
|
||||
<label>float.h</label>
|
||||
</node>
|
||||
<node id="2">
|
||||
<label>ostream</label>
|
||||
</node>
|
||||
<node id="5">
|
||||
<label>random</label>
|
||||
</node>
|
||||
<node id="3">
|
||||
<label>vector</label>
|
||||
</node>
|
||||
</incdepgraph>
|
||||
<innerclass refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" prot="public">JRAMPERSAD::EXPONENTIAL::GA_Options</innerclass>
|
||||
<innerclass refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" prot="public">JRAMPERSAD::EXPONENTIAL::Function</innerclass>
|
||||
<innernamespace refid="namespace_j_r_a_m_p_e_r_s_a_d">JRAMPERSAD</innernamespace>
|
||||
<innernamespace refid="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l">JRAMPERSAD::EXPONENTIAL</innernamespace>
|
||||
<innernamespace refid="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail">JRAMPERSAD::EXPONENTIAL::detail</innernamespace>
|
||||
<sectiondef kind="define">
|
||||
<memberdef kind="define" id="_exponential_8h_1aa9d24424a6f6e9452db8fba46dcdab18" prot="public" static="no">
|
||||
<name>JONATHAN_RAMPERSAD_EXPONENTIAL_H_</name>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="3" column="9" bodyfile="Exponential/Exponential.h" bodystart="3" bodyend="-1"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<programlisting>
|
||||
<codeline lineno="1"><highlight class="preprocessor">#pragma<sp/>once</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#ifndef<sp/>JONATHAN_RAMPERSAD_EXPONENTIAL_H_</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#define<sp/>JONATHAN_RAMPERSAD_EXPONENTIAL_H_</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="4"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><ostream></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><vector></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="7"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><float.h></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><random></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="9"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><algorithm></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><execution></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><exception></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="12"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">JRAMPERSAD</highlight></codeline>
|
||||
<codeline lineno="14"><highlight class="normal">{</highlight></codeline>
|
||||
<codeline lineno="15"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">EXPONENTIAL</highlight></codeline>
|
||||
<codeline lineno="16"><highlight class="normal"><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="21" refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal"><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref></highlight></codeline>
|
||||
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="24" refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a316979973a2a6b70b00520c2f753a43c" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a316979973a2a6b70b00520c2f753a43c" kindref="member">min_range</ref><sp/>=<sp/>-100;</highlight></codeline>
|
||||
<codeline lineno="26" refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a9b8f1e5367f6b0d8b16eecaea53b40e2" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a9b8f1e5367f6b0d8b16eecaea53b40e2" kindref="member">max_range</ref><sp/>=<sp/>100;</highlight></codeline>
|
||||
<codeline lineno="28" refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a4a67bad303f8a4fca40020a0802524c5" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a4a67bad303f8a4fca40020a0802524c5" kindref="member">num_of_generations</ref><sp/>=<sp/>10;</highlight></codeline>
|
||||
<codeline lineno="30" refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1ad133af29dbbc26b8c3d507d359c03326" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1ad133af29dbbc26b8c3d507d359c03326" kindref="member">sample_size</ref><sp/>=<sp/>1000;</highlight></codeline>
|
||||
<codeline lineno="32" refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a6ec95fe6cc95dc32727659cf5bb1be12" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a6ec95fe6cc95dc32727659cf5bb1be12" kindref="member">data_size</ref><sp/>=<sp/>100000;</highlight></codeline>
|
||||
<codeline lineno="34" refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a736488b3cfeebda7b93b3e8c6f576bf8" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a736488b3cfeebda7b93b3e8c6f576bf8" kindref="member">mutation_percentage</ref><sp/>=<sp/>0.01;</highlight></codeline>
|
||||
<codeline lineno="35"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline>
|
||||
<codeline lineno="36"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="37"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">namespace<sp/></highlight><highlight class="normal">detail</highlight></codeline>
|
||||
<codeline lineno="38"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">nodiscard</ref>(</highlight><highlight class="stringliteral">"MATH::ABS(T)<sp/>returns<sp/>a<sp/>value<sp/>of<sp/>type<sp/>T"</highlight><highlight class="normal">)]]<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref><sp/>ABS(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref>)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="42"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/><<sp/>0<sp/>?<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>*<sp/>-1<sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref>;</highlight></codeline>
|
||||
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="44"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard(</highlight><highlight class="stringliteral">"MATH::NEGATE(T)<sp/>returns<sp/>a<sp/>value<sp/>of<sp/>type<sp/>T"</highlight><highlight class="normal">)]]<sp/>T<sp/>NEGATE(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>n)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>n<sp/>*<sp/>-1;</highlight></codeline>
|
||||
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="50"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="51"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="52"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard(</highlight><highlight class="stringliteral">"MATH::POW(T,<sp/>int)<sp/>returns<sp/>a<sp/>value<sp/>of<sp/>type<sp/>T"</highlight><highlight class="normal">)]]<sp/>T<sp/>POW(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>T&<sp/>n,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&<sp/>exp)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="53"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="54"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(exp<sp/>==<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>1;</highlight></codeline>
|
||||
<codeline lineno="56"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>T<sp/>res<sp/>=<sp/>n;</highlight></codeline>
|
||||
<codeline lineno="58"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>1;<sp/>i<sp/><<sp/>exp;<sp/>i++)</highlight></codeline>
|
||||
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res<sp/>*=<sp/>n;</highlight></codeline>
|
||||
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="62"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>res;</highlight></codeline>
|
||||
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="65"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="66"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard(</highlight><highlight class="stringliteral">"MATH::SUM(std::vector<T>)<sp/>returns<sp/>a<sp/>value<sp/>of<sp/>type<sp/>T"</highlight><highlight class="normal">)]]<sp/>T<sp/>SUM(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::vector<T>&<sp/>vec)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>T<sp/>res{};</highlight></codeline>
|
||||
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>val<sp/>:<sp/>vec)</highlight></codeline>
|
||||
<codeline lineno="71"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res<sp/>+=<sp/>val;</highlight></codeline>
|
||||
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>res;</highlight></codeline>
|
||||
<codeline lineno="73"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="74"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/>T<sp/>MEDIAN(std::vector<T><sp/>vec)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::sort(</highlight></codeline>
|
||||
<codeline lineno="79"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec.begin(),</highlight></codeline>
|
||||
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec.end(),</highlight></codeline>
|
||||
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>lhs,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>rhs)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="82"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>lhs<sp/><<sp/>rhs;</highlight></codeline>
|
||||
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="84"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>vec[vec.size()<sp/>/<sp/>2];</highlight></codeline>
|
||||
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="87"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[nodiscard]]<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>MEAN(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::vector<T>&<sp/>vec)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>SUM(vec)<sp/>/<sp/>vec.size();</highlight></codeline>
|
||||
<codeline lineno="92"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="93"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="94"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="95"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[noreturn]]<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>SortASC(std::vector<T>&<sp/>vec)</highlight></codeline>
|
||||
<codeline lineno="96"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="97"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::sort(</highlight></codeline>
|
||||
<codeline lineno="98"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::execution::par,</highlight></codeline>
|
||||
<codeline lineno="99"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec.begin(),<sp/>vec.end(),</highlight></codeline>
|
||||
<codeline lineno="100"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>lhs,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>rhs)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="101"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>lhs<sp/><<sp/>rhs;</highlight></codeline>
|
||||
<codeline lineno="102"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="103"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="104"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="105"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keyword">typename</highlight><highlight class="normal"><sp/>T></highlight></codeline>
|
||||
<codeline lineno="106"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[noreturn]]<sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>SortDESC(std::vector<T>&<sp/>vec)</highlight></codeline>
|
||||
<codeline lineno="107"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="108"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::sort(</highlight></codeline>
|
||||
<codeline lineno="109"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::execution::par,</highlight></codeline>
|
||||
<codeline lineno="110"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>vec.begin(),<sp/>vec.end(),</highlight></codeline>
|
||||
<codeline lineno="111"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>lhs,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>rhs)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="112"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>lhs<sp/>><sp/>rhs;</highlight></codeline>
|
||||
<codeline lineno="113"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="114"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="115"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="116"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo><sp/></highlight><highlight class="comment">//<sp/>Genetic<sp/>Algorithm<sp/>helper<sp/>struct</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="117"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">struct<sp/></highlight><highlight class="normal">GA_Solution</highlight></codeline>
|
||||
<codeline lineno="118"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="119"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>rank,<sp/>x,<sp/>y_val;</highlight></codeline>
|
||||
<codeline lineno="120"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">bool</highlight><highlight class="normal"><sp/>ranked;</highlight></codeline>
|
||||
<codeline lineno="121"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="122"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GA_Solution()<sp/>:<sp/>rank(0),<sp/>x(0),<sp/>y_val(0),<sp/>ranked(false)<sp/>{}</highlight></codeline>
|
||||
<codeline lineno="123"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>GA_Solution(</highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>Rank,<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>x_val,<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>y<sp/>=<sp/>0)<sp/>:<sp/>rank(Rank),<sp/>x(x_val),<sp/>y_val(y),<sp/>ranked(false)<sp/>{}</highlight></codeline>
|
||||
<codeline lineno="124"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/>~GA_Solution()<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="125"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="126"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>fitness(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::vector<int>&<sp/>constants)</highlight></codeline>
|
||||
<codeline lineno="127"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="128"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/>ans<sp/>=<sp/>0;</highlight></codeline>
|
||||
<codeline lineno="129"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>lrgst_expo;<sp/>i<sp/>>=<sp/>0;<sp/>i--)</highlight></codeline>
|
||||
<codeline lineno="130"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ans<sp/>+=<sp/>constants[i]<sp/>*<sp/>POW(x,<sp/>(lrgst_expo<sp/>-<sp/>i));</highlight></codeline>
|
||||
<codeline lineno="131"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="132"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>ans<sp/>-=<sp/>y_val;</highlight></codeline>
|
||||
<codeline lineno="133"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>rank<sp/>=<sp/>(ans<sp/>==<sp/>0)<sp/>?<sp/>DBL_MAX<sp/>:<sp/>ABS(1<sp/>/<sp/>ans);</highlight></codeline>
|
||||
<codeline lineno="134"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="135"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline>
|
||||
<codeline lineno="136"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="137"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="138"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">detail;</highlight></codeline>
|
||||
<codeline lineno="143"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="144" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" refkind="compound"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">class<sp/></highlight><highlight class="normal"><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref></highlight></codeline>
|
||||
<codeline lineno="145"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="146"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">private</highlight><highlight class="normal">:</highlight></codeline>
|
||||
<codeline lineno="147"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<int><sp/>constants;</highlight></codeline>
|
||||
<codeline lineno="148"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="149"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||||
<codeline lineno="150"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Speicialty<sp/>function<sp/>to<sp/>get<sp/>the<sp/>real<sp/>roots<sp/>of<sp/>a<sp/>Quadratic<sp/>Function<sp/>without<sp/>relying<sp/>on<sp/>a<sp/>Genetic<sp/>Algorithm<sp/>to<sp/>approximate</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="151"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a8f5b8975b6e7318c093a963cd0b43db6" kindref="member">QuadraticSolve</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<2></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>);</highlight></codeline>
|
||||
<codeline lineno="152"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="153"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">public</highlight><highlight class="normal">:</highlight></codeline>
|
||||
<codeline lineno="158"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::vector<int>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>);</highlight></codeline>
|
||||
<codeline lineno="163"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>(std::vector<int>&&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>);</highlight></codeline>
|
||||
<codeline lineno="164"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">other</ref>)<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="165"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>&&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">other</ref>)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"><sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="166"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">virtual</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">~Function</ref>();</highlight></codeline>
|
||||
<codeline lineno="167"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="168"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>&<sp/>operator=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">other</ref>)<sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="169"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>&<sp/>operator=(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>&&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">other</ref>)<sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"><sp/>=<sp/></highlight><highlight class="keywordflow">default</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="170"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="171"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Operator<sp/>function<sp/>to<sp/>display<sp/>function<sp/>object<sp/>in<sp/>a<sp/>human<sp/>readable<sp/>format</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="172"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/>std::ostream&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">operator<<</ref>(std::ostream&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo></ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>)</highlight></codeline>
|
||||
<codeline lineno="173"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="174"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>==<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="175"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="176"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.constants[0];</highlight></codeline>
|
||||
<codeline lineno="177"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref>;</highlight></codeline>
|
||||
<codeline lineno="178"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="179"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="180"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.constants[0]<sp/>==<sp/>1)</highlight></codeline>
|
||||
<codeline lineno="181"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"x"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="182"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.constants[0]<sp/>==<sp/>-1)</highlight></codeline>
|
||||
<codeline lineno="183"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"-x"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="184"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="185"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.constants[0]<sp/><<<sp/></highlight><highlight class="stringliteral">"x"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="186"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="187"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>!=<sp/>1)</highlight></codeline>
|
||||
<codeline lineno="188"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"^"</highlight><highlight class="normal"><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref>;</highlight></codeline>
|
||||
<codeline lineno="189"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="190"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>-<sp/>1;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>><sp/>0;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>--)</highlight></codeline>
|
||||
<codeline lineno="191"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="192"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.constants[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>-<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>];</highlight></codeline>
|
||||
<codeline lineno="193"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>==<sp/>0)<sp/></highlight><highlight class="keywordflow">continue</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="194"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="195"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>><sp/>0<sp/>?<sp/></highlight><highlight class="stringliteral">"<sp/>+<sp/>"</highlight><highlight class="normal"><sp/>:<sp/></highlight><highlight class="stringliteral">"<sp/>-<sp/>"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="196"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="197"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>!=<sp/>1)</highlight></codeline>
|
||||
<codeline lineno="198"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/><<<sp/>ABS(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref>)<sp/><<<sp/></highlight><highlight class="stringliteral">"x"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="199"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="200"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"x"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="201"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="202"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>!=<sp/>1)</highlight></codeline>
|
||||
<codeline lineno="203"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"^"</highlight><highlight class="normal"><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>;</highlight></codeline>
|
||||
<codeline lineno="204"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="205"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="206"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.constants[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref>];</highlight></codeline>
|
||||
<codeline lineno="207"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>==<sp/>0)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref>;</highlight></codeline>
|
||||
<codeline lineno="208"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="209"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref><sp/>><sp/>0<sp/>?<sp/></highlight><highlight class="stringliteral">"<sp/>+<sp/>"</highlight><highlight class="normal"><sp/>:<sp/></highlight><highlight class="stringliteral">"<sp/>-<sp/>"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="210"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref>;</highlight></codeline>
|
||||
<codeline lineno="211"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="212"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref><sp/><<<sp/>ABS(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref>);</highlight></codeline>
|
||||
<codeline lineno="213"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="214"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">os</ref>;</highlight></codeline>
|
||||
<codeline lineno="215"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="216"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="217"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>r></highlight></codeline>
|
||||
<codeline lineno="218"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<r></ref><sp/>operator+(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<e1></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f1</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<e2></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f2</ref>);<sp/></highlight><highlight class="comment">//<sp/>Operator<sp/>to<sp/>add<sp/>two<sp/>functions</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="219"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>r></highlight></codeline>
|
||||
<codeline lineno="220"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<r></ref><sp/>operator-(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<e1></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f1</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<e2></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f2</ref>);<sp/></highlight><highlight class="comment">//<sp/>Operator<sp/>to<sp/>subtract<sp/>two<sp/>functions</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="221"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="222"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Operators<sp/>to<sp/>multiply<sp/>a<sp/>function<sp/>by<sp/>a<sp/>constant<sp/>(Scaling<sp/>it)</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="223"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">friend</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo></ref><sp/>operator*(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref>)</highlight></codeline>
|
||||
<codeline lineno="224"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="225"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref><sp/>==<sp/>1)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>;</highlight></codeline>
|
||||
<codeline lineno="226"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref><sp/>==<sp/>0)<sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"Cannot<sp/>multiply<sp/>a<sp/>function<sp/>by<sp/>0"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="227"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="228"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<int><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>;</highlight></codeline>
|
||||
<codeline lineno="229"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>.constants)</highlight></codeline>
|
||||
<codeline lineno="230"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>.push_back(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref><sp/>*<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref>);</highlight></codeline>
|
||||
<codeline lineno="231"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="232"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo></ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>);</highlight></codeline>
|
||||
<codeline lineno="233"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="234"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo></ref>&<sp/>operator*=(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref>)</highlight></codeline>
|
||||
<codeline lineno="235"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="236"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref><sp/>==<sp/>1)<sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="237"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref><sp/>==<sp/>0)<sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"Cannot<sp/>multiply<sp/>a<sp/>function<sp/>by<sp/>0"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="238"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="239"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref><sp/>:<sp/>this->constants)</highlight></codeline>
|
||||
<codeline lineno="240"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref><sp/>*=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref>;</highlight></codeline>
|
||||
<codeline lineno="241"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="242"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>*</highlight><highlight class="keyword">this</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="243"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="244"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="249"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">nodiscard</ref>(</highlight><highlight class="stringliteral">"MATH::EXP::Function::differential()<sp/>returns<sp/>the<sp/>differential,<sp/>the<sp/>calling<sp/>object<sp/>is<sp/>not<sp/>changed"</highlight><highlight class="normal">)]]</highlight></codeline>
|
||||
<codeline lineno="250"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref><<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>-<sp/>1><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae43c705b427ac1ef27aed061a63e500e" kindref="member">differential</ref>()<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="251"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="257"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">nodiscard</ref>]]<sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ad090de9f6636094f14f1279615fccbc0" kindref="member">get_real_roots</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref><sp/>=<sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>())<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="258"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="264"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">nodiscard</ref>]]<sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5464547daff0c43faccdc40ea480bab4" kindref="member">solve_y</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">x_val</ref>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="265"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="272"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">nodiscard</ref>]]<sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a46b9671c4a29b2b2b34586048a3b795a" kindref="member">solve_x</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">&<sp/>y_val,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref><sp/>=<sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>())<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="273"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>};</highlight></codeline>
|
||||
<codeline lineno="274"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="280" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a8f5b8975b6e7318c093a963cd0b43db6" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<double><sp/>QuadraticSolve(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<2></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>)</highlight></codeline>
|
||||
<codeline lineno="281"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="282"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>;</highlight></codeline>
|
||||
<codeline lineno="283"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="284"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">a</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>.constants[0];</highlight></codeline>
|
||||
<codeline lineno="285"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">b</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>.constants[1];</highlight></codeline>
|
||||
<codeline lineno="286"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>.constants[2];</highlight></codeline>
|
||||
<codeline lineno="287"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="288"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sqr_val</ref><sp/>=<sp/></highlight><highlight class="keyword">static_cast<</highlight><highlight class="keywordtype">double</highlight><highlight class="keyword">></highlight><highlight class="normal">(POW(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">b</ref>,<sp/>2)<sp/>-<sp/>(4<sp/>*<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">a</ref><sp/>*<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">c</ref>));</highlight></codeline>
|
||||
<codeline lineno="289"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="290"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sqr_val</ref><sp/><<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="291"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="292"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>;</highlight></codeline>
|
||||
<codeline lineno="293"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="294"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="295"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>.push_back(((NEGATE(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">b</ref>)<sp/>+<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sqrt</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sqr_val</ref>))<sp/>/<sp/>2<sp/>*<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">a</ref>));</highlight></codeline>
|
||||
<codeline lineno="296"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>.push_back(((NEGATE(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">b</ref>)<sp/>-<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sqrt</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sqr_val</ref>))<sp/>/<sp/>2<sp/>*<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">a</ref>));</highlight></codeline>
|
||||
<codeline lineno="297"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>;</highlight></codeline>
|
||||
<codeline lineno="298"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="299"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="300"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>r<sp/>=<sp/>(e1<sp/>><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref><sp/>?<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e1</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref>)></highlight></codeline>
|
||||
<codeline lineno="301"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<r></ref><sp/></highlight><highlight class="keyword">operator</highlight><highlight class="normal">+(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<e1></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f1</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<e2></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f2</ref>)</highlight></codeline>
|
||||
<codeline lineno="302"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="303"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<int><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>;</highlight></codeline>
|
||||
<codeline lineno="304"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e1</ref><sp/>><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref>)</highlight></codeline>
|
||||
<codeline lineno="305"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="306"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f1</ref>.constants)</highlight></codeline>
|
||||
<codeline lineno="307"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>.<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">push_back</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref>);</highlight></codeline>
|
||||
<codeline lineno="308"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="309"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e1</ref><sp/>-<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref>;</highlight></codeline>
|
||||
<codeline lineno="310"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f2</ref>.constants)</highlight></codeline>
|
||||
<codeline lineno="311"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="312"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>]<sp/>+=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref>;</highlight></codeline>
|
||||
<codeline lineno="313"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>++;</highlight></codeline>
|
||||
<codeline lineno="314"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="315"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="316"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="317"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="318"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>val<sp/>:<sp/>f2.constants)</highlight></codeline>
|
||||
<codeline lineno="319"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res.push_back(val);</highlight></codeline>
|
||||
<codeline lineno="320"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="321"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>e2<sp/>-<sp/>e1;</highlight></codeline>
|
||||
<codeline lineno="322"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>val<sp/>:<sp/>f1.constants)</highlight></codeline>
|
||||
<codeline lineno="323"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="324"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res[i]<sp/>+=<sp/>val;</highlight></codeline>
|
||||
<codeline lineno="325"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i++;</highlight></codeline>
|
||||
<codeline lineno="326"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="327"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="328"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="329"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>Function<r>{res};</highlight></codeline>
|
||||
<codeline lineno="330"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="331"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="332"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e1,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>e2,<sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>r<sp/>=<sp/>(e1<sp/>><sp/>e2<sp/>?<sp/>e1<sp/>:<sp/>e2)></highlight></codeline>
|
||||
<codeline lineno="333"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>Function<r><sp/></highlight><highlight class="keyword">operator</highlight><highlight class="normal">-(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Function<e1>&<sp/>f1,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>Function<e2>&<sp/>f2)</highlight></codeline>
|
||||
<codeline lineno="334"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="335"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<int><sp/>res;</highlight></codeline>
|
||||
<codeline lineno="336"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(e1<sp/>><sp/>e2)</highlight></codeline>
|
||||
<codeline lineno="337"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="338"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>val<sp/>:<sp/>f1.constants)</highlight></codeline>
|
||||
<codeline lineno="339"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res.push_back(val);</highlight></codeline>
|
||||
<codeline lineno="340"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="341"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>e1<sp/>-<sp/>e2;</highlight></codeline>
|
||||
<codeline lineno="342"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>val<sp/>:<sp/>f2.constants)</highlight></codeline>
|
||||
<codeline lineno="343"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="344"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res[i]<sp/>-=<sp/>val;</highlight></codeline>
|
||||
<codeline lineno="345"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i++;</highlight></codeline>
|
||||
<codeline lineno="346"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="347"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="348"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">else</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="349"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="350"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>val<sp/>:<sp/>f2.constants)</highlight></codeline>
|
||||
<codeline lineno="351"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res.push_back(val);</highlight></codeline>
|
||||
<codeline lineno="352"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="353"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>i<sp/>=<sp/>e2<sp/>-<sp/>e1;</highlight></codeline>
|
||||
<codeline lineno="354"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="355"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>j<sp/>=<sp/>0;<sp/>j<sp/><<sp/>i;<sp/>j++)</highlight></codeline>
|
||||
<codeline lineno="356"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res[j]<sp/>*=<sp/>-1;</highlight></codeline>
|
||||
<codeline lineno="357"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="358"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/>val<sp/>:<sp/>f1.constants)</highlight></codeline>
|
||||
<codeline lineno="359"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="360"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>res[i]<sp/>=<sp/>val<sp/>-<sp/>res[i];</highlight></codeline>
|
||||
<codeline lineno="361"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>i++;</highlight></codeline>
|
||||
<codeline lineno="362"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="363"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="364"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="365"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>Function<r>{res};</highlight></codeline>
|
||||
<codeline lineno="366"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="367"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="368"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="369" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo>::Function</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/>std::vector<int>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>)</highlight></codeline>
|
||||
<codeline lineno="370"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="371"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/><<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="372"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"Function<sp/>template<sp/>argument<sp/>must<sp/>not<sp/>be<sp/>less<sp/>than<sp/>0"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="373"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="374"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>.size()<sp/>!=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>+<sp/>1)</highlight></codeline>
|
||||
<codeline lineno="375"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"Function<n><sp/>must<sp/>be<sp/>created<sp/>with<sp/>(n+1)<sp/>integers<sp/>in<sp/>vector<sp/>object"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="376"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="377"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>[0]<sp/>==<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="378"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"First<sp/>value<sp/>should<sp/>not<sp/>be<sp/>0"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="379"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="380"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>constants<sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>;</highlight></codeline>
|
||||
<codeline lineno="381"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="382"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="383"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="384" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a7216329180e93c93204f4061be9e560b" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo>::Function</ref>(std::vector<int>&&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>)</highlight></codeline>
|
||||
<codeline lineno="385"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="386"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/><<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="387"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"Function<sp/>template<sp/>argument<sp/>must<sp/>not<sp/>be<sp/>less<sp/>than<sp/>0"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="388"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="389"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>.size()<sp/>!=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>+<sp/>1)</highlight></codeline>
|
||||
<codeline lineno="390"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"Function<n><sp/>must<sp/>be<sp/>created<sp/>with<sp/>(n+1)<sp/>integers<sp/>in<sp/>vector<sp/>object"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="391"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="392"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>[0]<sp/>==<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="393"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"First<sp/>value<sp/>should<sp/>not<sp/>be<sp/>0"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="394"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="395"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>constants<sp/>=<sp/>std::move(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">constnts</ref>);</highlight></codeline>
|
||||
<codeline lineno="396"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="397"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="398"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="399"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo>::~Function</ref>()</highlight></codeline>
|
||||
<codeline lineno="400"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="401"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>constants.clear();</highlight></codeline>
|
||||
<codeline lineno="402"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="403"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="404"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="405" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae43c705b427ac1ef27aed061a63e500e" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref><<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>-<sp/>1><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo>::differential</ref>()</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
||||
<codeline lineno="406"><highlight class="keyword"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||||
<codeline lineno="407"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>==<sp/>0)</highlight></codeline>
|
||||
<codeline lineno="408"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">throw</highlight><highlight class="normal"><sp/>std::logic_error(</highlight><highlight class="stringliteral">"Cannot<sp/>differentiate<sp/>a<sp/>number<sp/>(Function<0>)"</highlight><highlight class="normal">);</highlight></codeline>
|
||||
<codeline lineno="409"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="410"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<int><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">result</ref>;</highlight></codeline>
|
||||
<codeline lineno="411"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>=<sp/>0;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/><<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref>;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>++)</highlight></codeline>
|
||||
<codeline lineno="412"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="413"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">result</ref>.push_back(constants[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>]<sp/>*<sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>-<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>));</highlight></codeline>
|
||||
<codeline lineno="414"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="415"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="416"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref><<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>-<sp/>1>{<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">result</ref>};</highlight></codeline>
|
||||
<codeline lineno="417"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="418"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="419"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="420" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ad090de9f6636094f14f1279615fccbc0" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo>::get_real_roots</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
||||
<codeline lineno="421"><highlight class="keyword"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||||
<codeline lineno="422"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Create<sp/>initial<sp/>random<sp/>solutions</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="423"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::random_device<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>;</highlight></codeline>
|
||||
<codeline lineno="424"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::uniform_real_distribution<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unif</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.min_range,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.max_range);</highlight></codeline>
|
||||
<codeline lineno="425"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<GA_Solution<lrgst_expo>><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>;</highlight></codeline>
|
||||
<codeline lineno="426"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="427"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.resize(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.data_size);</highlight></codeline>
|
||||
<codeline lineno="428"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>=<sp/>0;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/><<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.sample_size;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>++)</highlight></codeline>
|
||||
<codeline lineno="429"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>]<sp/>=<sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">GA_Solution<lrgst_expo></ref>{0,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unif</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>)});</highlight></codeline>
|
||||
<codeline lineno="430"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="431"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">float</highlight><highlight class="normal"><sp/>timer{<sp/>0<sp/>};</highlight></codeline>
|
||||
<codeline lineno="432"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="433"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref><sp/>=<sp/>0;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref><sp/><<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.num_of_generations;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref>++)</highlight></codeline>
|
||||
<codeline lineno="434"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="435"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::generate(std::execution::par,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin()<sp/>+<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.sample_size,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.end(),<sp/>[&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unif</ref>,<sp/>&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>]()<sp/>{</highlight></codeline>
|
||||
<codeline lineno="436"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>GA_Solution<lrgst_expo>{0,<sp/>unif(device)};</highlight></codeline>
|
||||
<codeline lineno="437"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="438"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="439"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Run<sp/>our<sp/>fitness<sp/>function</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="440"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)<sp/>{<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref>.fitness(constants);<sp/>}</highlight></codeline>
|
||||
<codeline lineno="441"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="442"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Sort<sp/>our<sp/>solutions<sp/>by<sp/>rank</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="443"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::sort(std::execution::par,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="444"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lhs</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">rhs</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="445"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>lhs.rank<sp/>><sp/>rhs.rank;</highlight></codeline>
|
||||
<codeline lineno="446"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="447"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="448"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Take<sp/>top<sp/>solutions</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="449"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<GA_Solution<lrgst_expo>><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>;</highlight></codeline>
|
||||
<codeline lineno="450"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::copy(</highlight></codeline>
|
||||
<codeline lineno="451"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin(),</highlight></codeline>
|
||||
<codeline lineno="452"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin()<sp/>+<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.sample_size,</highlight></codeline>
|
||||
<codeline lineno="453"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::back_inserter(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>)</highlight></codeline>
|
||||
<codeline lineno="454"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>);</highlight></codeline>
|
||||
<codeline lineno="455"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.clear();</highlight></codeline>
|
||||
<codeline lineno="456"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="457"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref><sp/>+<sp/>1<sp/>==<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.num_of_generations)</highlight></codeline>
|
||||
<codeline lineno="458"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="459"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::copy(</highlight></codeline>
|
||||
<codeline lineno="460"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.begin(),</highlight></codeline>
|
||||
<codeline lineno="461"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="462"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::back_inserter(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)</highlight></codeline>
|
||||
<codeline lineno="463"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>);</highlight></codeline>
|
||||
<codeline lineno="464"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.clear();</highlight></codeline>
|
||||
<codeline lineno="465"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="466"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="467"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="468"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Mutate<sp/>the<sp/>top<sp/>solutions<sp/>by<sp/>%</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="469"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::uniform_real_distribution<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>((1<sp/>-<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.mutation_percentage),<sp/>(1<sp/>+<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.mutation_percentage));</highlight></codeline>
|
||||
<codeline lineno="470"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::for_each(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.end(),<sp/>[&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>,<sp/>&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>](</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="471"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.x<sp/>*=<sp/>m(device);</highlight></codeline>
|
||||
<codeline lineno="472"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="473"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="474"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Cross<sp/>over<sp/>not<sp/>needed<sp/>as<sp/>it's<sp/>only<sp/>one<sp/>value</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="475"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="476"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::copy(</highlight></codeline>
|
||||
<codeline lineno="477"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.begin(),</highlight></codeline>
|
||||
<codeline lineno="478"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="479"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::back_inserter(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)</highlight></codeline>
|
||||
<codeline lineno="480"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>);</highlight></codeline>
|
||||
<codeline lineno="481"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.clear();</highlight></codeline>
|
||||
<codeline lineno="482"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.resize(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.data_size);</highlight></codeline>
|
||||
<codeline lineno="483"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="484"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="485"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::sort(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="486"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lhs</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">rhs</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="487"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>lhs.x<sp/><<sp/>rhs.x;</highlight></codeline>
|
||||
<codeline lineno="488"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="489"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="490"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">ans</ref>;</highlight></codeline>
|
||||
<codeline lineno="491"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)</highlight></codeline>
|
||||
<codeline lineno="492"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="493"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">ans</ref>.push_back(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref>.x);</highlight></codeline>
|
||||
<codeline lineno="494"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="495"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ans;</highlight></codeline>
|
||||
<codeline lineno="496"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="497"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="498"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="499" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5464547daff0c43faccdc40ea480bab4" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo>::solve_y</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">x_val</ref>)<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">noexcept</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="500"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="501"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<bool><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">exceptions</ref>;</highlight></codeline>
|
||||
<codeline lineno="502"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="503"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>:<sp/>constants)</highlight></codeline>
|
||||
<codeline lineno="504"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">exceptions</ref>.push_back(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>!=<sp/>0);</highlight></codeline>
|
||||
<codeline lineno="505"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="506"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">ans</ref>{<sp/>0<sp/>};</highlight></codeline>
|
||||
<codeline lineno="507"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref>;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>>=<sp/>0;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>--)</highlight></codeline>
|
||||
<codeline lineno="508"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="509"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">exceptions</ref>[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>])</highlight></codeline>
|
||||
<codeline lineno="510"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">ans</ref><sp/>+=<sp/>constants[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>]<sp/>*<sp/>POW(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">x_val</ref>,<sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref><sp/>-<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>));</highlight></codeline>
|
||||
<codeline lineno="511"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="512"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="513"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">ans</ref>;</highlight></codeline>
|
||||
<codeline lineno="514"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="515"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="516"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>lrgst_expo></highlight></codeline>
|
||||
<codeline lineno="517" refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a46b9671c4a29b2b2b34586048a3b795a" refkind="member"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">inline</highlight><highlight class="normal"><sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<lrgst_expo>::solve_x</ref>(</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">&<sp/>y_val,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>)</highlight><highlight class="keyword"><sp/>const</highlight></codeline>
|
||||
<codeline lineno="518"><highlight class="keyword"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="normal">{</highlight></codeline>
|
||||
<codeline lineno="519"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Create<sp/>initial<sp/>random<sp/>solutions</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="520"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::random_device<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>;</highlight></codeline>
|
||||
<codeline lineno="521"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::uniform_real_distribution<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unif</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.min_range,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.max_range);</highlight></codeline>
|
||||
<codeline lineno="522"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<GA_Solution<lrgst_expo>><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>;</highlight></codeline>
|
||||
<codeline lineno="523"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="524"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.resize(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.data_size);</highlight></codeline>
|
||||
<codeline lineno="525"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/>=<sp/>0;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref><sp/><<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.sample_size;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>++)</highlight></codeline>
|
||||
<codeline lineno="526"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>[<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">i</ref>]<sp/>=<sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">GA_Solution<lrgst_expo></ref>{0,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unif</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>),<sp/>y_val});</highlight></codeline>
|
||||
<codeline lineno="527"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="528"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keywordtype">unsigned</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref><sp/>=<sp/>0;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref><sp/><<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.num_of_generations;<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref>++)</highlight></codeline>
|
||||
<codeline lineno="529"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="530"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::generate(std::execution::par,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin()<sp/>+<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.sample_size,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.end(),<sp/>[&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unif</ref>,<sp/>&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>,<sp/>&y_val]()<sp/>{</highlight></codeline>
|
||||
<codeline lineno="531"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>GA_Solution<lrgst_expo>{0,<sp/>unif(device),<sp/>y_val};</highlight></codeline>
|
||||
<codeline lineno="532"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="533"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="534"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="535"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Run<sp/>our<sp/>fitness<sp/>function</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="536"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)<sp/>{<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref>.fitness(constants);<sp/>}</highlight></codeline>
|
||||
<codeline lineno="537"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="538"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Sort<sp/>our<sp/>solutions<sp/>by<sp/>rank</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="539"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::sort(std::execution::par,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="540"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lhs</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">rhs</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="541"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>lhs.rank<sp/>><sp/>rhs.rank;</highlight></codeline>
|
||||
<codeline lineno="542"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="543"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="544"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Take<sp/>top<sp/>solutions</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="545"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<GA_Solution<lrgst_expo>><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>;</highlight></codeline>
|
||||
<codeline lineno="546"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::copy(</highlight></codeline>
|
||||
<codeline lineno="547"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin(),</highlight></codeline>
|
||||
<codeline lineno="548"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin()<sp/>+<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.sample_size,</highlight></codeline>
|
||||
<codeline lineno="549"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::back_inserter(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>)</highlight></codeline>
|
||||
<codeline lineno="550"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>);</highlight></codeline>
|
||||
<codeline lineno="551"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.clear();</highlight></codeline>
|
||||
<codeline lineno="552"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="553"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">if</highlight><highlight class="normal"><sp/>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">count</ref><sp/>+<sp/>1<sp/>==<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.num_of_generations)</highlight></codeline>
|
||||
<codeline lineno="554"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="555"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::copy(</highlight></codeline>
|
||||
<codeline lineno="556"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.begin(),</highlight></codeline>
|
||||
<codeline lineno="557"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="558"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::back_inserter(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)</highlight></codeline>
|
||||
<codeline lineno="559"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>);</highlight></codeline>
|
||||
<codeline lineno="560"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.clear();</highlight></codeline>
|
||||
<codeline lineno="561"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">break</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="562"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="563"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="564"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Mutate<sp/>the<sp/>top<sp/>solutions<sp/>by<sp/>%</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="565"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::uniform_real_distribution<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>((1<sp/>-<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.mutation_percentage),<sp/>(1<sp/>+<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.mutation_percentage));</highlight></codeline>
|
||||
<codeline lineno="566"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::for_each(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.end(),<sp/>[&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>,<sp/>&<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">device</ref>](</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="567"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>s.x<sp/>*=<sp/>m(device);</highlight></codeline>
|
||||
<codeline lineno="568"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="569"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="570"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//<sp/>Cross<sp/>over<sp/>not<sp/>needed<sp/>as<sp/>it's<sp/>only<sp/>one<sp/>value</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="571"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="572"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::copy(</highlight></codeline>
|
||||
<codeline lineno="573"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.begin(),</highlight></codeline>
|
||||
<codeline lineno="574"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="575"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::back_inserter(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)</highlight></codeline>
|
||||
<codeline lineno="576"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>);</highlight></codeline>
|
||||
<codeline lineno="577"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">sample</ref>.clear();</highlight></codeline>
|
||||
<codeline lineno="578"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.resize(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.data_size);</highlight></codeline>
|
||||
<codeline lineno="579"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="580"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="581"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::sort(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="582"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lhs</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">rhs</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="583"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>return<sp/>lhs.x<sp/><<sp/>rhs.x;</highlight></codeline>
|
||||
<codeline lineno="584"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="585"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="586"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::vector<double><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">ans</ref>;</highlight></codeline>
|
||||
<codeline lineno="587"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">for</highlight><highlight class="normal"><sp/>(</highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref><sp/>:<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">solutions</ref>)</highlight></codeline>
|
||||
<codeline lineno="588"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>{</highlight></codeline>
|
||||
<codeline lineno="589"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">ans</ref>.push_back(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">s</ref>.x);</highlight></codeline>
|
||||
<codeline lineno="590"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="591"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>ans;</highlight></codeline>
|
||||
<codeline lineno="592"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="593"><highlight class="normal"><sp/><sp/><sp/><sp/>}</highlight></codeline>
|
||||
<codeline lineno="594"><highlight class="normal">}</highlight></codeline>
|
||||
<codeline lineno="595"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="596"><highlight class="normal"></highlight><highlight class="preprocessor">#endif<sp/></highlight><highlight class="comment">//<sp/>!JONATHAN_RAMPERSAD_EXPONENTIAL_H_</highlight></codeline>
|
||||
</programlisting>
|
||||
<location file="Exponential/Exponential.h"/>
|
||||
</compounddef>
|
||||
</doxygen>
|
301
docs/xml/_source_8cpp.xml
Normal file
301
docs/xml/_source_8cpp.xml
Normal file
@ -0,0 +1,301 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="_source_8cpp" kind="file" language="C++">
|
||||
<compoundname>Source.cpp</compoundname>
|
||||
<includes local="no">iostream</includes>
|
||||
<includes local="no">chrono</includes>
|
||||
<includes local="no">thread</includes>
|
||||
<includes local="no">mutex</includes>
|
||||
<includes refid="_exponential_8h" local="yes">Exponential.h</includes>
|
||||
<includes local="yes">Timer.h</includes>
|
||||
<incdepgraph>
|
||||
<node id="6">
|
||||
<label>Exponential.h</label>
|
||||
<link refid="_exponential_8h_source"/>
|
||||
<childnode refid="7" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="8" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="9" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="10" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="11" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="12" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="13" relation="include">
|
||||
</childnode>
|
||||
</node>
|
||||
<node id="1">
|
||||
<label>Exponential/Source.cpp</label>
|
||||
<link refid="_source_8cpp"/>
|
||||
<childnode refid="2" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="3" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="4" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="5" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="6" relation="include">
|
||||
</childnode>
|
||||
<childnode refid="14" relation="include">
|
||||
</childnode>
|
||||
</node>
|
||||
<node id="14">
|
||||
<label>Timer.h</label>
|
||||
</node>
|
||||
<node id="11">
|
||||
<label>algorithm</label>
|
||||
</node>
|
||||
<node id="3">
|
||||
<label>chrono</label>
|
||||
</node>
|
||||
<node id="13">
|
||||
<label>exception</label>
|
||||
</node>
|
||||
<node id="12">
|
||||
<label>execution</label>
|
||||
</node>
|
||||
<node id="9">
|
||||
<label>float.h</label>
|
||||
</node>
|
||||
<node id="2">
|
||||
<label>iostream</label>
|
||||
</node>
|
||||
<node id="5">
|
||||
<label>mutex</label>
|
||||
</node>
|
||||
<node id="7">
|
||||
<label>ostream</label>
|
||||
</node>
|
||||
<node id="10">
|
||||
<label>random</label>
|
||||
</node>
|
||||
<node id="4">
|
||||
<label>thread</label>
|
||||
</node>
|
||||
<node id="8">
|
||||
<label>vector</label>
|
||||
</node>
|
||||
</incdepgraph>
|
||||
<sectiondef kind="typedef">
|
||||
<memberdef kind="typedef" id="_source_8cpp_1a58886021157a65d2d4b9c3f486ea5c2c" prot="public" static="no">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>n</declname>
|
||||
<defname>n</defname>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">EXPONENTIAL::Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">n</ref> ></type>
|
||||
<definition>using Function = EXPONENTIAL::Function<n></definition>
|
||||
<argsstring></argsstring>
|
||||
<name>Function</name>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Source.cpp" line="11" column="1" bodyfile="Exponential/Source.cpp" bodystart="11" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="typedef" id="_source_8cpp_1abdf3aa0505635f2b960799972f78977d" prot="public" static="no">
|
||||
<type>TIMER::Timer</type>
|
||||
<definition>typedef TIMER::Timer timer</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>timer</name>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Source.cpp" line="13" column="22" bodyfile="Exponential/Source.cpp" bodystart="13" bodyend="-1"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<sectiondef kind="func">
|
||||
<memberdef kind="function" id="_source_8cpp_1aaffba5622da3efcab3ef60638c23cd52" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>exp</declname>
|
||||
<defname>exp</defname>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">void</ref></type>
|
||||
<definition>void CalcRoots</definition>
|
||||
<argsstring>(std::mutex &m, const Function< exp > &func, EXPONENTIAL::GA_Options options)</argsstring>
|
||||
<name>CalcRoots</name>
|
||||
<param>
|
||||
<type>std::mutex &</type>
|
||||
<declname>m</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">exp</ref> > &</type>
|
||||
<declname>func</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">EXPONENTIAL::GA_Options</ref></type>
|
||||
<declname>options</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Source.cpp" line="16" column="6" bodyfile="Exponential/Source.cpp" bodystart="16" bodyend="34"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_source_8cpp_1aea271c738ee176b86ab545bac23336f6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>exp</declname>
|
||||
<defname>exp</defname>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">void</ref></type>
|
||||
<definition>void SolveX</definition>
|
||||
<argsstring>(std::mutex &m, const Function< exp > &func, EXPONENTIAL::GA_Options options, const double &y)</argsstring>
|
||||
<name>SolveX</name>
|
||||
<param>
|
||||
<type>std::mutex &</type>
|
||||
<declname>m</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">exp</ref> > &</type>
|
||||
<declname>func</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">EXPONENTIAL::GA_Options</ref></type>
|
||||
<declname>options</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref> &</type>
|
||||
<declname>y</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Source.cpp" line="37" column="6" bodyfile="Exponential/Source.cpp" bodystart="37" bodyend="51"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_source_8cpp_1ae66f6b31b5ad750f1fe042a706a4e3d4" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<definition>int main</definition>
|
||||
<argsstring>()</argsstring>
|
||||
<name>main</name>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Source.cpp" line="53" column="5" bodyfile="Exponential/Source.cpp" bodystart="53" bodyend="92"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<programlisting>
|
||||
<codeline lineno="1"><highlight class="preprocessor">#include<sp/><iostream></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="2"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><chrono></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="3"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><thread></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="4"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/><mutex></highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="5"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"Exponential.h"</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="6"><highlight class="normal"></highlight><highlight class="preprocessor">#include<sp/>"Timer.h"</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="7"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="8"><highlight class="normal"></highlight><highlight class="keyword">using<sp/>namespace<sp/></highlight><highlight class="normal">JRAMPERSAD;</highlight></codeline>
|
||||
<codeline lineno="9"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="10"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><sp/><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>n></highlight></codeline>
|
||||
<codeline lineno="11"><highlight class="normal"></highlight><highlight class="keyword">using<sp/></highlight><highlight class="normal"><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">EXPONENTIAL::Function<n></ref>;</highlight></codeline>
|
||||
<codeline lineno="12"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="13"><highlight class="normal"></highlight><highlight class="keyword">typedef</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">TIMER::Timer</ref><sp/>timer;</highlight></codeline>
|
||||
<codeline lineno="14"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="15"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>exp></highlight></codeline>
|
||||
<codeline lineno="16"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>CalcRoots(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::mutex</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<exp></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>,<sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">EXPONENTIAL::GA_Options</ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>)</highlight></codeline>
|
||||
<codeline lineno="17"><highlight class="normal">{</highlight></codeline>
|
||||
<codeline lineno="18"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.lock();</highlight></codeline>
|
||||
<codeline lineno="19"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cout</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"Starting<sp/>calculation...\n"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="20"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.unlock();</highlight></codeline>
|
||||
<codeline lineno="21"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="22"><highlight class="normal"><sp/><sp/><sp/><sp/>timer<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">t</ref>;</highlight></codeline>
|
||||
<codeline lineno="23"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">gr</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ad090de9f6636094f14f1279615fccbc0" kindref="member">get_real_roots</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>);</highlight></codeline>
|
||||
<codeline lineno="24"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">t</ref>.SetEnd();</highlight></codeline>
|
||||
<codeline lineno="25"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="26"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.lock();</highlight></codeline>
|
||||
<codeline lineno="27"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cout</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"Time<sp/>took<sp/>to<sp/>calculate<sp/>approx<sp/>root<sp/>values:<sp/>"</highlight><highlight class="normal"><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">t</ref>.GetTimeInS()<sp/><<<sp/></highlight><highlight class="stringliteral">"s\n"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="28"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cout</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"Approximate<sp/>values<sp/>of<sp/>x<sp/>where<sp/>y<sp/>=<sp/>0<sp/>are:<sp/>\n"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="29"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::for_each</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">gr</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">gr</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="30"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="31"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::cout<sp/><<<sp/></highlight><highlight class="stringliteral">"x:"</highlight><highlight class="normal"><sp/><<<sp/>val<sp/><<<sp/></highlight><highlight class="stringliteral">'\n'</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="32"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="33"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.unlock();</highlight></codeline>
|
||||
<codeline lineno="34"><highlight class="normal">}</highlight></codeline>
|
||||
<codeline lineno="35"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="36"><highlight class="normal"></highlight><highlight class="keyword">template</highlight><highlight class="normal"><</highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>exp></highlight></codeline>
|
||||
<codeline lineno="37"><highlight class="normal"></highlight><highlight class="keywordtype">void</highlight><highlight class="normal"><sp/>SolveX(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::mutex</ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<exp></ref>&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>,<sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">EXPONENTIAL::GA_Options</ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>,<sp/></highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keywordtype">double</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">y</ref>)</highlight></codeline>
|
||||
<codeline lineno="38"><highlight class="normal">{</highlight></codeline>
|
||||
<codeline lineno="39"><highlight class="normal"><sp/><sp/><sp/><sp/>timer<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">t</ref>;</highlight></codeline>
|
||||
<codeline lineno="40"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal"><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref><sp/>=<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">func</ref>.<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a46b9671c4a29b2b2b34586048a3b795a" kindref="member">solve_x</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">y</ref>,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>);</highlight></codeline>
|
||||
<codeline lineno="41"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">t</ref>.SetEnd();</highlight></codeline>
|
||||
<codeline lineno="42"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="43"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.lock();</highlight></codeline>
|
||||
<codeline lineno="44"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cout</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"Time<sp/>took<sp/>to<sp/>calculate<sp/>approx<sp/>x<sp/>values:<sp/>"</highlight><highlight class="normal"><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">t</ref>.GetTimeInS()<sp/><<<sp/></highlight><highlight class="stringliteral">"s\n"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="45"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cout</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"Approximate<sp/>values<sp/>of<sp/>x<sp/>where<sp/>y<sp/>=<sp/>"</highlight><highlight class="normal"><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">y</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"<sp/>are:<sp/>\n"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="46"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::for_each</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>.begin(),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">res</ref>.end(),</highlight></codeline>
|
||||
<codeline lineno="47"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>[](</highlight><highlight class="keyword">const</highlight><highlight class="normal"><sp/></highlight><highlight class="keyword">auto</highlight><highlight class="normal">&<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">val</ref>)<sp/>{</highlight></codeline>
|
||||
<codeline lineno="48"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>std::cout<sp/><<<sp/></highlight><highlight class="stringliteral">"x:"</highlight><highlight class="normal"><sp/><<<sp/>val<sp/><<<sp/></highlight><highlight class="stringliteral">'\n'</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="49"><highlight class="normal"><sp/><sp/><sp/><sp/><sp/><sp/><sp/><sp/>});</highlight></codeline>
|
||||
<codeline lineno="50"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.unlock();</highlight></codeline>
|
||||
<codeline lineno="51"><highlight class="normal">}</highlight></codeline>
|
||||
<codeline lineno="52"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="53"><highlight class="normal"></highlight><highlight class="keywordtype">int</highlight><highlight class="normal"><sp/>main()</highlight></codeline>
|
||||
<codeline lineno="54"><highlight class="normal">{</highlight></codeline>
|
||||
<codeline lineno="55"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::vector<int></ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">vec</ref>{<sp/>1,<sp/>5,<sp/>4<sp/>};</highlight></codeline>
|
||||
<codeline lineno="56"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<2></ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">f</ref>{<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">vec</ref><sp/>};</highlight></codeline>
|
||||
<codeline lineno="57"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function<3></ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">g</ref>{<sp/>{<sp/>1,<sp/>-6,<sp/>11,<sp/>-6<sp/>}<sp/>};</highlight></codeline>
|
||||
<codeline lineno="58"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="59"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">EXPONENTIAL::GA_Options</ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>;</highlight></codeline>
|
||||
<codeline lineno="60"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.mutation_percentage<sp/>=<sp/>0.005;</highlight></codeline>
|
||||
<codeline lineno="61"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.num_of_generations<sp/>=<sp/>10;</highlight></codeline>
|
||||
<codeline lineno="62"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.sample_size<sp/>=<sp/>50;</highlight></codeline>
|
||||
<codeline lineno="63"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.data_size<sp/>=<sp/>5000000;</highlight></codeline>
|
||||
<codeline lineno="64"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.min_range<sp/>=<sp/>-100;</highlight></codeline>
|
||||
<codeline lineno="65"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>.max_range<sp/>=<sp/>100;</highlight></codeline>
|
||||
<codeline lineno="66"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="67"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::mutex</ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>;</highlight></codeline>
|
||||
<codeline lineno="68"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::thread</ref><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">th</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">CalcRoots<3></ref>,<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::ref</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cref</ref>(<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">g</ref>),<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">options</ref>);</highlight></codeline>
|
||||
<codeline lineno="69"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::thread<sp/>th1(SolveX<3>,<sp/>std::ref(m),<sp/>std::cref(g),<sp/>options,<sp/>5);</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="70"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::thread<sp/>th2(SolveX<3>,<sp/>std::ref(m),<sp/>std::cref(g),<sp/>options,<sp/>23);</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="71"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="72"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//CalcRoots<3>(m,<sp/>g);</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="73"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="74"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.lock();</highlight></codeline>
|
||||
<codeline lineno="75"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cout</ref><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">g</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"<sp/>when<sp/>x<sp/>=<sp/>4.961015\n"</highlight><highlight class="normal"><sp/><<<sp/></highlight><highlight class="stringliteral">"y<sp/>=<sp/>"</highlight><highlight class="normal"><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">g</ref>.<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5464547daff0c43faccdc40ea480bab4" kindref="member">solve_y</ref>(4.961015)<sp/><<<sp/></highlight><highlight class="stringliteral">"\n\n"</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="76"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::cout<sp/><<<sp/>g<sp/><<<sp/>"<sp/>when<sp/>x<sp/>=<sp/>4.30891\n"<sp/><<<sp/>"y<sp/>=<sp/>"<sp/><<<sp/>g.solve_y(4.30891)<sp/><<<sp/>"\n\n";</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="77"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::cout<sp/><<<sp/>g<sp/><<<sp/>"<sp/>when<sp/>x<sp/>=<sp/>2\n"<sp/><<<sp/>"y<sp/>=<sp/>"<sp/><<<sp/>g.solve_y(2)<sp/><<<sp/>"\n\n";</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="78"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::cout<sp/><<<sp/>g<sp/><<<sp/>"<sp/>when<sp/>x<sp/>=<sp/>3\n"<sp/><<<sp/>"y<sp/>=<sp/>"<sp/><<<sp/>g.solve_y(3)<sp/><<<sp/>"\n\n";</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="79"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="80"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::cout<sp/><<<sp/>"Median:<sp/>"<sp/><<<sp/>MATH::MEDIAN(gr)<sp/><<<sp/>'\n';</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="81"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::cout<sp/><<<sp/>"Mean:<sp/>"<sp/><<<sp/>MATH::MEAN(gr)<sp/><<<sp/>'\n';</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="82"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="83"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::cout<sp/><<<sp/>"Calculating<sp/>Roots<sp/>for<sp/>function<sp/>f(x)<sp/>=<sp/>"<sp/><<<sp/>g<sp/><<<sp/>'\n';</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="84"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//std::cout<sp/><<<sp/>"The<sp/>y-intercept<sp/>of<sp/>the<sp/>function<sp/>f(x)<sp/>is<sp/>"<sp/><<<sp/>g.solve_y(0)<sp/><<<sp/>'\n';</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="85"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kindref="member">std::cout</ref><sp/><<<sp/></highlight><highlight class="stringliteral">"dy/dx<sp/>of<sp/>f(x)<sp/>is<sp/>"</highlight><highlight class="normal"><sp/><<<sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">g</ref>.<ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae43c705b427ac1ef27aed061a63e500e" kindref="member">differential</ref>()<sp/><<<sp/></highlight><highlight class="charliteral">'\n'</highlight><highlight class="normal">;</highlight></codeline>
|
||||
<codeline lineno="86"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">m</ref>.unlock();</highlight></codeline>
|
||||
<codeline lineno="87"><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="88"><highlight class="normal"><sp/><sp/><sp/><sp/><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">th</ref>.join();</highlight></codeline>
|
||||
<codeline lineno="89"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//th1.join();</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="90"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="comment">//th2.join();</highlight><highlight class="normal"></highlight></codeline>
|
||||
<codeline lineno="91"><highlight class="normal"><sp/><sp/><sp/><sp/></highlight><highlight class="keywordflow">return</highlight><highlight class="normal"><sp/>0;</highlight></codeline>
|
||||
<codeline lineno="92"><highlight class="normal">}</highlight></codeline>
|
||||
</programlisting>
|
||||
<location file="Exponential/Source.cpp"/>
|
||||
</compounddef>
|
||||
</doxygen>
|
@ -0,0 +1,510 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kind="class" language="C++" prot="public">
|
||||
<compoundname>JRAMPERSAD::EXPONENTIAL::Function</compoundname>
|
||||
<includes refid="_exponential_8h" local="no">Exponential.h</includes>
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>lrgst_expo</declname>
|
||||
<defname>lrgst_expo</defname>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<sectiondef kind="private-attrib">
|
||||
<memberdef kind="variable" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a77a9d035d39b19c73c1c58d76aaa7820" prot="private" static="no" mutable="no">
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref> ></type>
|
||||
<definition>std::vector<int> JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::constants</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>constants</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::constants</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="147" column="13" bodyfile="Exponential/Exponential.h" bodystart="147" bodyend="-1"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<sectiondef kind="friend">
|
||||
<memberdef kind="friend" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a8f5b8975b6e7318c093a963cd0b43db6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref> ></type>
|
||||
<definition>std::vector< double > QuadraticSolve</definition>
|
||||
<argsstring>(const Function< 2 > &f)</argsstring>
|
||||
<name>QuadraticSolve</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::QuadraticSolve</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< 2 > &</type>
|
||||
<declname>f</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
<para>Uses the quadratic function to solve the roots of an entered quadratic equation. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="param"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>f</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para>Quadratic function you'd like to find the roots of (Quadratic <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> object is a Function<2> object </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
<simplesect kind="return"><para>a vector containing the roots </para>
|
||||
</simplesect>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="151" column="20" bodyfile="Exponential/Exponential.h" bodystart="280" bodyend="298"/>
|
||||
</memberdef>
|
||||
<memberdef kind="friend" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5de27194ad9a38f44771637a0f187562" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
|
||||
<type>std::ostream &</type>
|
||||
<definition>std::ostream & operator<<</definition>
|
||||
<argsstring>(std::ostream &os, const Function< lrgst_expo > func)</argsstring>
|
||||
<name>operator<<</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::operator<<</qualifiedname>
|
||||
<param>
|
||||
<type>std::ostream &</type>
|
||||
<declname>os</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref> ></type>
|
||||
<declname>func</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="172" column="8" bodyfile="Exponential/Exponential.h" bodystart="172" bodyend="215"/>
|
||||
</memberdef>
|
||||
<memberdef kind="friend" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a08885f8e67d9d34770121c63c16f2eea" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>e1</declname>
|
||||
<defname>e1</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>e2</declname>
|
||||
<defname>e2</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>r</declname>
|
||||
<defname>r</defname>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">r</ref> ></type>
|
||||
<definition>Function< r > operator+</definition>
|
||||
<argsstring>(const Function< e1 > &f1, const Function< e2 > &f2)</argsstring>
|
||||
<name>operator+</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::operator+</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e1</ref> > &</type>
|
||||
<declname>f1</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref> > &</type>
|
||||
<declname>f2</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="218" column="17" bodyfile="Exponential/Exponential.h" bodystart="301" bodyend="330"/>
|
||||
</memberdef>
|
||||
<memberdef kind="friend" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1afde1d3a278a171c30ff0ff00f65d120e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>e1</declname>
|
||||
<defname>e1</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>e2</declname>
|
||||
<defname>e2</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>r</declname>
|
||||
<defname>r</defname>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">r</ref> ></type>
|
||||
<definition>Function< r > operator-</definition>
|
||||
<argsstring>(const Function< e1 > &f1, const Function< e2 > &f2)</argsstring>
|
||||
<name>operator-</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::operator-</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e1</ref> > &</type>
|
||||
<declname>f1</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref> > &</type>
|
||||
<declname>f2</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="220" column="17" bodyfile="Exponential/Exponential.h" bodystart="333" bodyend="366"/>
|
||||
</memberdef>
|
||||
<memberdef kind="friend" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae95957956718c40093891faf8dd52b0e" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref> ></type>
|
||||
<definition>Function< lrgst_expo > operator*</definition>
|
||||
<argsstring>(const Function< lrgst_expo > &f, const int &c)</argsstring>
|
||||
<name>operator*</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::operator*</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref> > &</type>
|
||||
<declname>f</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref> &</type>
|
||||
<declname>c</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="223" column="17" bodyfile="Exponential/Exponential.h" bodystart="223" bodyend="233"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<sectiondef kind="public-func">
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<type></type>
|
||||
<definition>JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::Function</definition>
|
||||
<argsstring>(const std::vector< int > &constnts)</argsstring>
|
||||
<name>Function</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::Function</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref> > &</type>
|
||||
<declname>constnts</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
<para>Constructor for <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> class. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="param"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>constnts</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para>An array with the constants for the function (e.g 2, 1, 3 = 2x^2 + 1x - 3) size of array MUST be lrgst_expo + 1 </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="158" column="1" bodyfile="Exponential/Exponential.h" bodystart="369" bodyend="381"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a7216329180e93c93204f4061be9e560b" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<type></type>
|
||||
<definition>JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::Function</definition>
|
||||
<argsstring>(std::vector< int > &&constnts)</argsstring>
|
||||
<name>Function</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::Function</qualifiedname>
|
||||
<param>
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref> > &&</type>
|
||||
<declname>constnts</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
<para>Constructor for <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> class. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="param"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>constnts</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para>An array with the constants for the function (e.g 2, 1, 3 = 2x^2 + 1x - 3) size of array MUST be lrgst_expo + 1 </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="163" column="1" bodyfile="Exponential/Exponential.h" bodystart="384" bodyend="396"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a38038a3b3f371ca62098ad4d4c510966" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<type></type>
|
||||
<definition>JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::Function</definition>
|
||||
<argsstring>(const Function &other)=default</argsstring>
|
||||
<name>Function</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::Function</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> &</type>
|
||||
<declname>other</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="164" column="1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1aaafd98fd5dc5d0f9e4503bed1d49d323" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<type></type>
|
||||
<definition>JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::Function</definition>
|
||||
<argsstring>(Function &&other) noexcept=default</argsstring>
|
||||
<name>Function</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::Function</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> &&</type>
|
||||
<declname>other</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="165" column="1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a808783ae8be714fbbc5ddbd71db5ba30" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual">
|
||||
<type></type>
|
||||
<definition>JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::~Function</definition>
|
||||
<argsstring>()</argsstring>
|
||||
<name>~Function</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::~Function</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="166" column="9" bodyfile="Exponential/Exponential.h" bodystart="399" bodyend="402"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5c6ff5d442c8a74503312fb6bc75a1ff" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> &</type>
|
||||
<definition>Function & JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::operator=</definition>
|
||||
<argsstring>(const Function &other)=default</argsstring>
|
||||
<name>operator=</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::operator=</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> &</type>
|
||||
<declname>other</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="168" column="10"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ac8934939c219d782fd1e02bca393318d" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> &</type>
|
||||
<definition>Function & JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::operator=</definition>
|
||||
<argsstring>(Function &&other) noexcept=default</argsstring>
|
||||
<name>operator=</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::operator=</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> &&</type>
|
||||
<declname>other</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="169" column="10"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a71628f495a8a26f9584487abf05293b8" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref> > &</type>
|
||||
<definition>Function< lrgst_expo > & JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::operator*=</definition>
|
||||
<argsstring>(const int &c)</argsstring>
|
||||
<name>operator*=</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::operator*=</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref> &</type>
|
||||
<declname>c</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="234" column="10" bodyfile="Exponential/Exponential.h" bodystart="234" bodyend="243"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae43c705b427ac1ef27aed061a63e500e" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">lrgst_expo</ref> - 1 ></type>
|
||||
<definition>Function< lrgst_expo - 1 > JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::differential</definition>
|
||||
<argsstring>() const</argsstring>
|
||||
<name>differential</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::differential</qualifiedname>
|
||||
<briefdescription>
|
||||
<para>Calculates the differential (dy/dx) of the function. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><simplesect kind="return"><para>a function representing the differential (dy/dx) of the calling function object </para>
|
||||
</simplesect>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="250" column="10" bodyfile="Exponential/Exponential.h" bodystart="405" bodyend="417"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ad090de9f6636094f14f1279615fccbc0" prot="public" static="no" const="yes" explicit="no" inline="no" virt="non-virtual">
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref> ></type>
|
||||
<definition>std::vector< double > JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::get_real_roots</definition>
|
||||
<argsstring>(const GA_Options &options=GA_Options()) const</argsstring>
|
||||
<name>get_real_roots</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::get_real_roots</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref> &</type>
|
||||
<declname>options</declname>
|
||||
<defval><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>()</defval>
|
||||
</param>
|
||||
<briefdescription>
|
||||
<para><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> that uses a genetic algorithm to find the approximate roots of the function. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="param"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>options</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref> object specifying the options to run the algorithm </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
<simplesect kind="return"><para>A vector containing a n number of approximate root values (n = sample_size as defined in options) </para>
|
||||
</simplesect>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="257" column="14" bodyfile="Exponential/Exponential.h" bodystart="420" bodyend="496"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5464547daff0c43faccdc40ea480bab4" prot="public" static="no" const="yes" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::solve_y</definition>
|
||||
<argsstring>(const double &x_val) const noexcept</argsstring>
|
||||
<name>solve_y</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::solve_y</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref> &</type>
|
||||
<declname>x_val</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
<para><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> that solves for y when x = user value. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="param"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>x_val</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para>the X Value you'd like the function to use </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
<simplesect kind="return"><para>the Y value the function returns based on the entered X value </para>
|
||||
</simplesect>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="264" column="9" bodyfile="Exponential/Exponential.h" bodystart="499" bodyend="514"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a46b9671c4a29b2b2b34586048a3b795a" prot="public" static="no" const="yes" explicit="no" inline="yes" virt="non-virtual">
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref> ></type>
|
||||
<definition>std::vector< double > JRAMPERSAD::EXPONENTIAL::Function< lrgst_expo >::solve_x</definition>
|
||||
<argsstring>(const double &y_val, const GA_Options &options=GA_Options()) const</argsstring>
|
||||
<name>solve_x</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::Function::solve_x</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref> &</type>
|
||||
<declname>y_val</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref> &</type>
|
||||
<declname>options</declname>
|
||||
<defval><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref>()</defval>
|
||||
</param>
|
||||
<briefdescription>
|
||||
<para><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> that uses a genetic algorithm to find the values of x where y = user value. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="param"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>y_val</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para>The return value that you would like to find the approximate x values needed to solve when entered into the function </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
<parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>options</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para><ref refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kindref="compound">GA_Options</ref> object specifying the options to run the algorithm </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
<simplesect kind="return"><para>A vector containing a n number of x values that cause the function to approximately equal the y_val (n = sample_size as defined in options) </para>
|
||||
</simplesect>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="272" column="14" bodyfile="Exponential/Exponential.h" bodystart="517" bodyend="592"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<briefdescription>
|
||||
<para>A class representing an Exponential <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> (e.g 2x^2 + 4x - 1),. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="templateparam"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>lrgst_expo</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para>The largest exponent in the function (e.g 2 means largest exponent is x^2) </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<location file="Exponential/Exponential.h" line="144" column="1" bodyfile="Exponential/Exponential.h" bodystart="145" bodyend="273"/>
|
||||
<listofallmembers>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a77a9d035d39b19c73c1c58d76aaa7820" prot="private" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>constants</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae43c705b427ac1ef27aed061a63e500e" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>differential</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a7216329180e93c93204f4061be9e560b" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a38038a3b3f371ca62098ad4d4c510966" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1aaafd98fd5dc5d0f9e4503bed1d49d323" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ad090de9f6636094f14f1279615fccbc0" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>get_real_roots</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae95957956718c40093891faf8dd52b0e" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>operator*</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a71628f495a8a26f9584487abf05293b8" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>operator*=</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a08885f8e67d9d34770121c63c16f2eea" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>operator+</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1afde1d3a278a171c30ff0ff00f65d120e" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>operator-</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5de27194ad9a38f44771637a0f187562" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>operator<<</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5c6ff5d442c8a74503312fb6bc75a1ff" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>operator=</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ac8934939c219d782fd1e02bca393318d" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>operator=</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a8f5b8975b6e7318c093a963cd0b43db6" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>QuadraticSolve</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a46b9671c4a29b2b2b34586048a3b795a" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>solve_x</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5464547daff0c43faccdc40ea480bab4" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>solve_y</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a808783ae8be714fbbc5ddbd71db5ba30" prot="public" virt="virtual"><scope>JRAMPERSAD::EXPONENTIAL::Function</scope><name>~Function</name></member>
|
||||
</listofallmembers>
|
||||
</compounddef>
|
||||
</doxygen>
|
15
docs/xml/combine.xslt
Normal file
15
docs/xml/combine.xslt
Normal file
@ -0,0 +1,15 @@
|
||||
<!-- XSLT script to combine the generated output into a single file.
|
||||
If you have xsltproc you could use:
|
||||
xsltproc combine.xslt index.xml >all.xml
|
||||
-->
|
||||
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
|
||||
<xsl:output method="xml" version="1.0" indent="no" standalone="yes" />
|
||||
<xsl:template match="/">
|
||||
<doxygen version="{doxygenindex/@version}" xml:lang="{doxygenindex/@xml:lang}">
|
||||
<!-- Load all doxygen generated xml files -->
|
||||
<xsl:for-each select="doxygenindex/compound">
|
||||
<xsl:copy-of select="document( concat( @refid, '.xml' ) )/doxygen/*" />
|
||||
</xsl:for-each>
|
||||
</doxygen>
|
||||
</xsl:template>
|
||||
</xsl:stylesheet>
|
1635
docs/xml/compound.xsd
Normal file
1635
docs/xml/compound.xsd
Normal file
File diff suppressed because it is too large
Load Diff
13
docs/xml/dir_47b71af010aaa4c53cfa8d8f5b85c863.xml
Normal file
13
docs/xml/dir_47b71af010aaa4c53cfa8d8f5b85c863.xml
Normal file
@ -0,0 +1,13 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="dir_47b71af010aaa4c53cfa8d8f5b85c863" kind="dir">
|
||||
<compoundname>Exponential</compoundname>
|
||||
<innerfile refid="_exponential_8h">Exponential.h</innerfile>
|
||||
<innerfile refid="_source_8cpp">Source.cpp</innerfile>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<location file="Exponential/"/>
|
||||
</compounddef>
|
||||
</doxygen>
|
45
docs/xml/doxyfile.xsd
Normal file
45
docs/xml/doxyfile.xsd
Normal file
@ -0,0 +1,45 @@
|
||||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
||||
|
||||
<xsd:element name="doxyfile" type="DoxygenFileType"/>
|
||||
|
||||
<xsd:complexType name="DoxygenFileType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="option" type="OptionType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="version" type="xsd:string" use="required"/>
|
||||
<xsd:attribute ref="xml:lang" use="required"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="OptionType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="value" type="valueType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="id" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="default" type="defaultType" use="required"/>
|
||||
<xsd:attribute name="type" type="typeType" use="required"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="valueType">
|
||||
<xsd:restriction base="xsd:string">
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:simpleType name="defaultType">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="yes"/>
|
||||
<xsd:enumeration value="no"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:simpleType name="typeType">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="int"/>
|
||||
<xsd:enumeration value="bool"/>
|
||||
<xsd:enumeration value="string"/>
|
||||
<xsd:enumeration value="stringlist"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
</xsd:schema>
|
60
docs/xml/index.xml
Normal file
60
docs/xml/index.xml
Normal file
@ -0,0 +1,60 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygenindex xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="index.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compound refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kind="class"><name>JRAMPERSAD::EXPONENTIAL::Function</name>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a77a9d035d39b19c73c1c58d76aaa7820" kind="variable"><name>constants</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a8f5b8975b6e7318c093a963cd0b43db6" kind="friend"><name>QuadraticSolve</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5de27194ad9a38f44771637a0f187562" kind="friend"><name>operator<<</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a08885f8e67d9d34770121c63c16f2eea" kind="friend"><name>operator+</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1afde1d3a278a171c30ff0ff00f65d120e" kind="friend"><name>operator-</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae95957956718c40093891faf8dd52b0e" kind="friend"><name>operator*</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a0585614da72409acfbed262411ea7882" kind="function"><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a7216329180e93c93204f4061be9e560b" kind="function"><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a38038a3b3f371ca62098ad4d4c510966" kind="function"><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1aaafd98fd5dc5d0f9e4503bed1d49d323" kind="function"><name>Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a808783ae8be714fbbc5ddbd71db5ba30" kind="function"><name>~Function</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5c6ff5d442c8a74503312fb6bc75a1ff" kind="function"><name>operator=</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ac8934939c219d782fd1e02bca393318d" kind="function"><name>operator=</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a71628f495a8a26f9584487abf05293b8" kind="function"><name>operator*=</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ae43c705b427ac1ef27aed061a63e500e" kind="function"><name>differential</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1ad090de9f6636094f14f1279615fccbc0" kind="function"><name>get_real_roots</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a5464547daff0c43faccdc40ea480bab4" kind="function"><name>solve_y</name></member>
|
||||
<member refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function_1a46b9671c4a29b2b2b34586048a3b795a" kind="function"><name>solve_x</name></member>
|
||||
</compound>
|
||||
<compound refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kind="struct"><name>JRAMPERSAD::EXPONENTIAL::GA_Options</name>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a316979973a2a6b70b00520c2f753a43c" kind="variable"><name>min_range</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a9b8f1e5367f6b0d8b16eecaea53b40e2" kind="variable"><name>max_range</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a4a67bad303f8a4fca40020a0802524c5" kind="variable"><name>num_of_generations</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1ad133af29dbbc26b8c3d507d359c03326" kind="variable"><name>sample_size</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a6ec95fe6cc95dc32727659cf5bb1be12" kind="variable"><name>data_size</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a736488b3cfeebda7b93b3e8c6f576bf8" kind="variable"><name>mutation_percentage</name></member>
|
||||
</compound>
|
||||
<compound refid="namespace_j_r_a_m_p_e_r_s_a_d" kind="namespace"><name>JRAMPERSAD</name>
|
||||
</compound>
|
||||
<compound refid="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l" kind="namespace"><name>JRAMPERSAD::EXPONENTIAL</name>
|
||||
<member refid="_exponential_8h_1a74ba0c80c30d2b4a2746dcafafbb6331" kind="function"><name>QuadraticSolve</name></member>
|
||||
<member refid="_exponential_8h_1a949e2b83422e0ba69d947c8ae8b6b33e" kind="function"><name>operator+</name></member>
|
||||
<member refid="_exponential_8h_1a9c05c4f210dac69008764b974749d9d6" kind="function"><name>operator-</name></member>
|
||||
</compound>
|
||||
<compound refid="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail" kind="namespace"><name>JRAMPERSAD::EXPONENTIAL::detail</name>
|
||||
<member refid="_exponential_8h_1a18e931aadf93c46a7d2a70240273b744" kind="function"><name>ABS</name></member>
|
||||
<member refid="_exponential_8h_1ad8c0061f5d379beb5478b7a0b73325b4" kind="function"><name>NEGATE</name></member>
|
||||
<member refid="_exponential_8h_1a2bac2791c00b5a563a7bf60c422e9709" kind="function"><name>POW</name></member>
|
||||
<member refid="_exponential_8h_1a151665afe2284333a8407d99721a823d" kind="function"><name>SUM</name></member>
|
||||
<member refid="_exponential_8h_1a70f3fa407240a86fc80a12e0bfb161b1" kind="function"><name>MEDIAN</name></member>
|
||||
<member refid="_exponential_8h_1a8b5d80226dd572f405a738362a65d42a" kind="function"><name>MEAN</name></member>
|
||||
<member refid="_exponential_8h_1af8429cc7e6d21e47d3aabcf82fea1b61" kind="function"><name>SortASC</name></member>
|
||||
<member refid="_exponential_8h_1a4bce0c855a68d504f23c7c1cfd4314ef" kind="function"><name>SortDESC</name></member>
|
||||
</compound>
|
||||
<compound refid="_exponential_8h" kind="file"><name>Exponential.h</name>
|
||||
<member refid="_exponential_8h_1aa9d24424a6f6e9452db8fba46dcdab18" kind="define"><name>JONATHAN_RAMPERSAD_EXPONENTIAL_H_</name></member>
|
||||
</compound>
|
||||
<compound refid="_source_8cpp" kind="file"><name>Source.cpp</name>
|
||||
<member refid="_source_8cpp_1a58886021157a65d2d4b9c3f486ea5c2c" kind="typedef"><name>Function</name></member>
|
||||
<member refid="_source_8cpp_1abdf3aa0505635f2b960799972f78977d" kind="typedef"><name>timer</name></member>
|
||||
<member refid="_source_8cpp_1aaffba5622da3efcab3ef60638c23cd52" kind="function"><name>CalcRoots</name></member>
|
||||
<member refid="_source_8cpp_1aea271c738ee176b86ab545bac23336f6" kind="function"><name>SolveX</name></member>
|
||||
<member refid="_source_8cpp_1ae66f6b31b5ad750f1fe042a706a4e3d4" kind="function"><name>main</name></member>
|
||||
</compound>
|
||||
<compound refid="dir_47b71af010aaa4c53cfa8d8f5b85c863" kind="dir"><name>Exponential</name>
|
||||
</compound>
|
||||
</doxygenindex>
|
72
docs/xml/index.xsd
Normal file
72
docs/xml/index.xsd
Normal file
@ -0,0 +1,72 @@
|
||||
<?xml version='1.0' encoding='utf-8' ?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
|
||||
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" schemaLocation="xml.xsd"/>
|
||||
|
||||
<xsd:element name="doxygenindex" type="DoxygenType"/>
|
||||
|
||||
<xsd:complexType name="DoxygenType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="compound" type="CompoundType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="version" type="xsd:string" use="required"/>
|
||||
<xsd:attribute ref="xml:lang" use="required"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="CompoundType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="name" type="xsd:string"/>
|
||||
<xsd:element name="member" type="MemberType" minOccurs="0" maxOccurs="unbounded"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="refid" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="kind" type="CompoundKind" use="required"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:complexType name="MemberType">
|
||||
<xsd:sequence>
|
||||
<xsd:element name="name" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="refid" type="xsd:string" use="required"/>
|
||||
<xsd:attribute name="kind" type="MemberKind" use="required"/>
|
||||
</xsd:complexType>
|
||||
|
||||
<xsd:simpleType name="CompoundKind">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="class"/>
|
||||
<xsd:enumeration value="struct"/>
|
||||
<xsd:enumeration value="union"/>
|
||||
<xsd:enumeration value="interface"/>
|
||||
<xsd:enumeration value="protocol"/>
|
||||
<xsd:enumeration value="category"/>
|
||||
<xsd:enumeration value="exception"/>
|
||||
<xsd:enumeration value="file"/>
|
||||
<xsd:enumeration value="namespace"/>
|
||||
<xsd:enumeration value="group"/>
|
||||
<xsd:enumeration value="page"/>
|
||||
<xsd:enumeration value="example"/>
|
||||
<xsd:enumeration value="dir"/>
|
||||
<xsd:enumeration value="type"/>
|
||||
<xsd:enumeration value="concept"/>
|
||||
<xsd:enumeration value="module"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
<xsd:simpleType name="MemberKind">
|
||||
<xsd:restriction base="xsd:string">
|
||||
<xsd:enumeration value="define"/>
|
||||
<xsd:enumeration value="property"/>
|
||||
<xsd:enumeration value="event"/>
|
||||
<xsd:enumeration value="variable"/>
|
||||
<xsd:enumeration value="typedef"/>
|
||||
<xsd:enumeration value="enum"/>
|
||||
<xsd:enumeration value="enumvalue"/>
|
||||
<xsd:enumeration value="function"/>
|
||||
<xsd:enumeration value="signal"/>
|
||||
<xsd:enumeration value="prototype"/>
|
||||
<xsd:enumeration value="friend"/>
|
||||
<xsd:enumeration value="dcop"/>
|
||||
<xsd:enumeration value="slot"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
|
||||
</xsd:schema>
|
||||
|
12
docs/xml/namespace_j_r_a_m_p_e_r_s_a_d.xml
Normal file
12
docs/xml/namespace_j_r_a_m_p_e_r_s_a_d.xml
Normal file
@ -0,0 +1,12 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="namespace_j_r_a_m_p_e_r_s_a_d" kind="namespace" language="C++">
|
||||
<compoundname>JRAMPERSAD</compoundname>
|
||||
<innernamespace refid="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l">JRAMPERSAD::EXPONENTIAL</innernamespace>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<location file="Exponential/Exponential.h" line="13" column="1"/>
|
||||
</compounddef>
|
||||
</doxygen>
|
@ -0,0 +1,127 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l" kind="namespace" language="C++">
|
||||
<compoundname>JRAMPERSAD::EXPONENTIAL</compoundname>
|
||||
<innerclass refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" prot="public">JRAMPERSAD::EXPONENTIAL::Function</innerclass>
|
||||
<innerclass refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" prot="public">JRAMPERSAD::EXPONENTIAL::GA_Options</innerclass>
|
||||
<innernamespace refid="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail">JRAMPERSAD::EXPONENTIAL::detail</innernamespace>
|
||||
<sectiondef kind="func">
|
||||
<memberdef kind="function" id="_exponential_8h_1a74ba0c80c30d2b4a2746dcafafbb6331" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref> ></type>
|
||||
<definition>std::vector< double > JRAMPERSAD::EXPONENTIAL::QuadraticSolve</definition>
|
||||
<argsstring>(const Function< 2 > &f)</argsstring>
|
||||
<name>QuadraticSolve</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::QuadraticSolve</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< 2 > &</type>
|
||||
<declname>f</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
<para>Uses the quadratic function to solve the roots of an entered quadratic equation. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
<para><parameterlist kind="param"><parameteritem>
|
||||
<parameternamelist>
|
||||
<parametername>f</parametername>
|
||||
</parameternamelist>
|
||||
<parameterdescription>
|
||||
<para>Quadratic function you'd like to find the roots of (Quadratic <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> object is a Function<2> object </para>
|
||||
</parameterdescription>
|
||||
</parameteritem>
|
||||
</parameterlist>
|
||||
<simplesect kind="return"><para>a vector containing the roots </para>
|
||||
</simplesect>
|
||||
</para>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="280" column="13" bodyfile="Exponential/Exponential.h" bodystart="280" bodyend="298"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1a949e2b83422e0ba69d947c8ae8b6b33e" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>int</type>
|
||||
<declname>e1</declname>
|
||||
<defname>e1</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type>int</type>
|
||||
<declname>e2</declname>
|
||||
<defname>e2</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type>int</type>
|
||||
<declname>r</declname>
|
||||
<defname>r</defname>
|
||||
<defval>(e1 > e2 ? e1 : e2)</defval>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">r</ref> ></type>
|
||||
<definition>Function< r > JRAMPERSAD::EXPONENTIAL::operator+</definition>
|
||||
<argsstring>(const Function< e1 > &f1, const Function< e2 > &f2)</argsstring>
|
||||
<name>operator+</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::operator+</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e1</ref> > &</type>
|
||||
<declname>f1</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref> > &</type>
|
||||
<declname>f2</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="301" column="10" bodyfile="Exponential/Exponential.h" bodystart="301" bodyend="330"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1a9c05c4f210dac69008764b974749d9d6" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>int</type>
|
||||
<declname>e1</declname>
|
||||
<defname>e1</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type>int</type>
|
||||
<declname>e2</declname>
|
||||
<defname>e2</defname>
|
||||
</param>
|
||||
<param>
|
||||
<type>int</type>
|
||||
<declname>r</declname>
|
||||
<defname>r</defname>
|
||||
<defval>(e1 > e2 ? e1 : e2)</defval>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">r</ref> ></type>
|
||||
<definition>Function< r > JRAMPERSAD::EXPONENTIAL::operator-</definition>
|
||||
<argsstring>(const Function< e1 > &f1, const Function< e2 > &f2)</argsstring>
|
||||
<name>operator-</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::operator-</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e1</ref> > &</type>
|
||||
<declname>f1</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref>< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">e2</ref> > &</type>
|
||||
<declname>f2</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="333" column="10" bodyfile="Exponential/Exponential.h" bodystart="333" bodyend="366"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<location file="Exponential/Exponential.h" line="15" column="1"/>
|
||||
</compounddef>
|
||||
</doxygen>
|
@ -0,0 +1,201 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="namespace_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail" kind="namespace" language="C++">
|
||||
<compoundname>JRAMPERSAD::EXPONENTIAL::detail</compoundname>
|
||||
<sectiondef kind="func">
|
||||
<memberdef kind="function" id="_exponential_8h_1a18e931aadf93c46a7d2a70240273b744" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref></type>
|
||||
<definition>T JRAMPERSAD::EXPONENTIAL::detail::ABS</definition>
|
||||
<argsstring>(const T &n) noexcept</argsstring>
|
||||
<name>ABS</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::ABS</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> &</type>
|
||||
<declname>n</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="40" column="4" bodyfile="Exponential/Exponential.h" bodystart="40" bodyend="43"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1ad8c0061f5d379beb5478b7a0b73325b4" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref></type>
|
||||
<definition>T JRAMPERSAD::EXPONENTIAL::detail::NEGATE</definition>
|
||||
<argsstring>(const T &n) noexcept</argsstring>
|
||||
<name>NEGATE</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::NEGATE</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> &</type>
|
||||
<declname>n</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="46" column="4" bodyfile="Exponential/Exponential.h" bodystart="46" bodyend="49"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1a2bac2791c00b5a563a7bf60c422e9709" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref></type>
|
||||
<definition>T JRAMPERSAD::EXPONENTIAL::detail::POW</definition>
|
||||
<argsstring>(const T &n, const int &exp) noexcept</argsstring>
|
||||
<name>POW</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::POW</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> &</type>
|
||||
<declname>n</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref> &</type>
|
||||
<declname>exp</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="52" column="4" bodyfile="Exponential/Exponential.h" bodystart="52" bodyend="64"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1a151665afe2284333a8407d99721a823d" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref></type>
|
||||
<definition>T JRAMPERSAD::EXPONENTIAL::detail::SUM</definition>
|
||||
<argsstring>(const std::vector< T > &vec) noexcept</argsstring>
|
||||
<name>SUM</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::SUM</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> > &</type>
|
||||
<declname>vec</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="67" column="4" bodyfile="Exponential/Exponential.h" bodystart="67" bodyend="73"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1a70f3fa407240a86fc80a12e0bfb161b1" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref></type>
|
||||
<definition>T JRAMPERSAD::EXPONENTIAL::detail::MEDIAN</definition>
|
||||
<argsstring>(std::vector< T > vec) noexcept</argsstring>
|
||||
<name>MEDIAN</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::MEDIAN</qualifiedname>
|
||||
<param>
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> ></type>
|
||||
<declname>vec</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="76" column="4" bodyfile="Exponential/Exponential.h" bodystart="76" bodyend="86"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1a8b5d80226dd572f405a738362a65d42a" prot="public" static="no" const="no" explicit="no" inline="no" noexcept="yes" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::detail::MEAN</definition>
|
||||
<argsstring>(const std::vector< T > &vec) noexcept</argsstring>
|
||||
<name>MEAN</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::MEAN</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> > &</type>
|
||||
<declname>vec</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="89" column="9" bodyfile="Exponential/Exponential.h" bodystart="89" bodyend="92"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1af8429cc7e6d21e47d3aabcf82fea1b61" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">void</ref></type>
|
||||
<definition>void JRAMPERSAD::EXPONENTIAL::detail::SortASC</definition>
|
||||
<argsstring>(std::vector< T > &vec)</argsstring>
|
||||
<name>SortASC</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::SortASC</qualifiedname>
|
||||
<param>
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> > &</type>
|
||||
<declname>vec</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="95" column="7" bodyfile="Exponential/Exponential.h" bodystart="95" bodyend="103"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="_exponential_8h_1a4bce0c855a68d504f23c7c1cfd4314ef" prot="public" static="no" const="no" explicit="no" inline="no" virt="non-virtual">
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type>typename T</type>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">void</ref></type>
|
||||
<definition>void JRAMPERSAD::EXPONENTIAL::detail::SortDESC</definition>
|
||||
<argsstring>(std::vector< T > &vec)</argsstring>
|
||||
<name>SortDESC</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::SortDESC</qualifiedname>
|
||||
<param>
|
||||
<type>std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">T</ref> > &</type>
|
||||
<declname>vec</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="106" column="7" bodyfile="Exponential/Exponential.h" bodystart="106" bodyend="114"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<location file="Exponential/Exponential.h" line="37" column="1"/>
|
||||
</compounddef>
|
||||
</doxygen>
|
@ -0,0 +1,119 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options" kind="struct" language="C++" prot="public">
|
||||
<compoundname>JRAMPERSAD::EXPONENTIAL::GA_Options</compoundname>
|
||||
<includes refid="_exponential_8h" local="no">Exponential.h</includes>
|
||||
<sectiondef kind="public-attrib">
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a316979973a2a6b70b00520c2f753a43c" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::GA_Options::min_range</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>min_range</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::GA_Options::min_range</qualifiedname>
|
||||
<initializer>= -100</initializer>
|
||||
<briefdescription>
|
||||
<para>Minimum value you believe the answer can be. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="24" column="8" bodyfile="Exponential/Exponential.h" bodystart="24" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a9b8f1e5367f6b0d8b16eecaea53b40e2" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::GA_Options::max_range</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>max_range</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::GA_Options::max_range</qualifiedname>
|
||||
<initializer>= 100</initializer>
|
||||
<briefdescription>
|
||||
<para>Maximum value you believe the answer can be. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="26" column="8" bodyfile="Exponential/Exponential.h" bodystart="26" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a4a67bad303f8a4fca40020a0802524c5" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unsigned</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<definition>unsigned int JRAMPERSAD::EXPONENTIAL::GA_Options::num_of_generations</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>num_of_generations</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::GA_Options::num_of_generations</qualifiedname>
|
||||
<initializer>= 10</initializer>
|
||||
<briefdescription>
|
||||
<para>Number of times you'd like to run the algorithm (increasing this value causes the algorithm to take longer) </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="28" column="14" bodyfile="Exponential/Exponential.h" bodystart="28" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1ad133af29dbbc26b8c3d507d359c03326" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unsigned</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<definition>unsigned int JRAMPERSAD::EXPONENTIAL::GA_Options::sample_size</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>sample_size</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::GA_Options::sample_size</qualifiedname>
|
||||
<initializer>= 1000</initializer>
|
||||
<briefdescription>
|
||||
<para>Amount of approximate solutions you'd like to be returned. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="30" column="14" bodyfile="Exponential/Exponential.h" bodystart="30" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a6ec95fe6cc95dc32727659cf5bb1be12" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">unsigned</ref> <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<definition>unsigned int JRAMPERSAD::EXPONENTIAL::GA_Options::data_size</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>data_size</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::GA_Options::data_size</qualifiedname>
|
||||
<initializer>= 100000</initializer>
|
||||
<briefdescription>
|
||||
<para>Amount of solutions you'd like the algorithm to generate (increasing this value causes the algorithm to take longer) </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="32" column="14" bodyfile="Exponential/Exponential.h" bodystart="32" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a736488b3cfeebda7b93b3e8c6f576bf8" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::GA_Options::mutation_percentage</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>mutation_percentage</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::GA_Options::mutation_percentage</qualifiedname>
|
||||
<initializer>= 0.01</initializer>
|
||||
<briefdescription>
|
||||
<para>How much you'd like the algorithm to mutate solutions (Leave this as default in most cases) </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="34" column="8" bodyfile="Exponential/Exponential.h" bodystart="34" bodyend="-1"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<briefdescription>
|
||||
<para>Structure for options to be used when running one of the two genetic algorithms in a <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">Function</ref> object. </para>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<location file="Exponential/Exponential.h" line="21" column="1" bodyfile="Exponential/Exponential.h" bodystart="22" bodyend="35"/>
|
||||
<listofallmembers>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a6ec95fe6cc95dc32727659cf5bb1be12" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::GA_Options</scope><name>data_size</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a9b8f1e5367f6b0d8b16eecaea53b40e2" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::GA_Options</scope><name>max_range</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a316979973a2a6b70b00520c2f753a43c" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::GA_Options</scope><name>min_range</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a736488b3cfeebda7b93b3e8c6f576bf8" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::GA_Options</scope><name>mutation_percentage</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1a4a67bad303f8a4fca40020a0802524c5" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::GA_Options</scope><name>num_of_generations</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_g_a___options_1ad133af29dbbc26b8c3d507d359c03326" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::GA_Options</scope><name>sample_size</name></member>
|
||||
</listofallmembers>
|
||||
</compounddef>
|
||||
</doxygen>
|
@ -0,0 +1,161 @@
|
||||
<?xml version='1.0' encoding='UTF-8' standalone='no'?>
|
||||
<doxygen xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="compound.xsd" version="1.9.8" xml:lang="en-US">
|
||||
<compounddef id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution" kind="struct" language="C++" prot="public">
|
||||
<compoundname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</compoundname>
|
||||
<templateparamlist>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref></type>
|
||||
<declname>lrgst_expo</declname>
|
||||
<defname>lrgst_expo</defname>
|
||||
</param>
|
||||
</templateparamlist>
|
||||
<sectiondef kind="public-attrib">
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a2e3723b62d3f4bac9e4cc573fd64e84c" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::rank</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>rank</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::rank</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="119" column="8" bodyfile="Exponential/Exponential.h" bodystart="119" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a7d57801b01fab757029663439f04af65" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::x</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>x</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::x</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="119" column="13" bodyfile="Exponential/Exponential.h" bodystart="119" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a9d6a8fae4ccfaeb1ce20afecb67c84ff" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<definition>double JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::y_val</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>y_val</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::y_val</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="119" column="15" bodyfile="Exponential/Exponential.h" bodystart="119" bodyend="-1"/>
|
||||
</memberdef>
|
||||
<memberdef kind="variable" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1adc3ef46c48fc4b5a202131921f5c2a5f" prot="public" static="no" mutable="no">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">bool</ref></type>
|
||||
<definition>bool JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::ranked</definition>
|
||||
<argsstring></argsstring>
|
||||
<name>ranked</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::ranked</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="120" column="6" bodyfile="Exponential/Exponential.h" bodystart="120" bodyend="-1"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<sectiondef kind="public-func">
|
||||
<memberdef kind="function" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a170516426e2b8aed6077eca183838ac7" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
|
||||
<type></type>
|
||||
<definition>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::GA_Solution</definition>
|
||||
<argsstring>()</argsstring>
|
||||
<name>GA_Solution</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::GA_Solution</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="122" column="1" bodyfile="Exponential/Exponential.h" bodystart="122" bodyend="122"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a6cf25d21664ed2bd25b37ce771450dc4" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
|
||||
<type></type>
|
||||
<definition>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::GA_Solution</definition>
|
||||
<argsstring>(double Rank, double x_val, double y=0)</argsstring>
|
||||
<name>GA_Solution</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::GA_Solution</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<declname>Rank</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<declname>x_val</declname>
|
||||
</param>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">double</ref></type>
|
||||
<declname>y</declname>
|
||||
<defval>0</defval>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="123" column="1" bodyfile="Exponential/Exponential.h" bodystart="123" bodyend="123"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a04b83401ae2f50216b67382b7c4bd237" prot="public" static="no" const="no" explicit="no" inline="no" virt="virtual">
|
||||
<type></type>
|
||||
<definition>virtual JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::~GA_Solution</definition>
|
||||
<argsstring>()=default</argsstring>
|
||||
<name>~GA_Solution</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::~GA_Solution</qualifiedname>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="124" column="9"/>
|
||||
</memberdef>
|
||||
<memberdef kind="function" id="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1ac92bb2a2e6a4d39f555b907db40f46b0" prot="public" static="no" const="no" explicit="no" inline="yes" virt="non-virtual">
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">void</ref></type>
|
||||
<definition>void JRAMPERSAD::EXPONENTIAL::detail::GA_Solution< lrgst_expo >::fitness</definition>
|
||||
<argsstring>(const std::vector< int > &constants)</argsstring>
|
||||
<name>fitness</name>
|
||||
<qualifiedname>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution::fitness</qualifiedname>
|
||||
<param>
|
||||
<type><ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">const</ref> std::vector< <ref refid="class_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1_function" kindref="compound">int</ref> > &</type>
|
||||
<declname>constants</declname>
|
||||
</param>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<inbodydescription>
|
||||
</inbodydescription>
|
||||
<location file="Exponential/Exponential.h" line="126" column="6" bodyfile="Exponential/Exponential.h" bodystart="126" bodyend="134"/>
|
||||
</memberdef>
|
||||
</sectiondef>
|
||||
<briefdescription>
|
||||
</briefdescription>
|
||||
<detaileddescription>
|
||||
</detaileddescription>
|
||||
<location file="Exponential/Exponential.h" line="117" column="1" bodyfile="Exponential/Exponential.h" bodystart="118" bodyend="135"/>
|
||||
<listofallmembers>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1ac92bb2a2e6a4d39f555b907db40f46b0" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>fitness</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a170516426e2b8aed6077eca183838ac7" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>GA_Solution</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a6cf25d21664ed2bd25b37ce771450dc4" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>GA_Solution</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a2e3723b62d3f4bac9e4cc573fd64e84c" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>rank</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1adc3ef46c48fc4b5a202131921f5c2a5f" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>ranked</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a7d57801b01fab757029663439f04af65" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>x</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a9d6a8fae4ccfaeb1ce20afecb67c84ff" prot="public" virt="non-virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>y_val</name></member>
|
||||
<member refid="struct_j_r_a_m_p_e_r_s_a_d_1_1_e_x_p_o_n_e_n_t_i_a_l_1_1detail_1_1_g_a___solution_1a04b83401ae2f50216b67382b7c4bd237" prot="public" virt="virtual"><scope>JRAMPERSAD::EXPONENTIAL::detail::GA_Solution</scope><name>~GA_Solution</name></member>
|
||||
</listofallmembers>
|
||||
</compounddef>
|
||||
</doxygen>
|
23
docs/xml/xml.xsd
Normal file
23
docs/xml/xml.xsd
Normal file
@ -0,0 +1,23 @@
|
||||
<?xml version='1.0'?>
|
||||
<xsd:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
|
||||
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
xml:lang="en">
|
||||
|
||||
<xsd:attribute name="lang" type="xsd:language">
|
||||
</xsd:attribute>
|
||||
|
||||
<xsd:attribute name="space" default="preserve">
|
||||
<xsd:simpleType>
|
||||
<xsd:restriction base="xsd:NCName">
|
||||
<xsd:enumeration value="default"/>
|
||||
<xsd:enumeration value="preserve"/>
|
||||
</xsd:restriction>
|
||||
</xsd:simpleType>
|
||||
</xsd:attribute>
|
||||
|
||||
<xsd:attributeGroup name="specialAttrs">
|
||||
<xsd:attribute ref="xml:lang"/>
|
||||
<xsd:attribute ref="xml:space"/>
|
||||
</xsd:attributeGroup>
|
||||
|
||||
</xsd:schema>
|
Reference in New Issue
Block a user