MediaWiki API result

This is the HTML representation of the JSON format. HTML is good for debugging, but is unsuitable for application use.

Specify the format parameter to change the output format. To see the non-HTML representation of the JSON format, set format=json.

See the complete documentation, or the API help for more information.

{
    "batchcomplete": "",
    "continue": {
        "gapcontinue": "Reference_Manual_Template",
        "continue": "gapcontinue||"
    },
    "warnings": {
        "main": {
            "*": "Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes."
        },
        "revisions": {
            "*": "Because \"rvslots\" was not specified, a legacy format has been used for the output. This format is deprecated, and in the future the new format will always be used."
        }
    },
    "query": {
        "pages": {
            "951": {
                "pageid": 951,
                "ns": 0,
                "title": "Reducennsamples",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "===Purpose===\n\nSelects a subset of samples by removing nearest neighbors.\n\n===Synopsis===\n\n:[sc,incl] = reducennsamples(model,minsamples,options);\n:[sc,incl] = reducennsamples(model,newdata,minsamples,options);\n\n===Description===\n\n[[Automatic_sample_selection|(Also available in the Analysis interface via the data context menu)]]\n\nSelect a subset of samples by removing nearest neighbors.\nPerforms a selection of samples which fill out the multivariate space by\nremoving (\"thinning out\") samples which are similar to each other based\non nearest neighbor distance. This algorithm is useful in selecting the\nminimum number of samples needed to define a subspace and reduce the\nnumber of reference measurements needed, or amount of data needed to be\nstored.\n\nInitially, the nearest neighbor of each sample is found along with the\ndistance between the neighbors. Of the two nearest samples, one is\nexcluded from the data and the distances are recalculated. This process\nis repeated until either the smallest distance between samples reaches a\nmaximum limit, or the number of samples reaches a lower limit.\n\nSource of data can be either a factor-based model (PCA, PLS, PCR, etc)\nwhich contains scores for all samples, or a raw data matrix or DataSet,\nin which case distances will be calculated in raw variable space.\n\nAlgorithm is based on work published in:\n: J.S. Shenk, M.O. Westerhaus, Crop Sci., 1991, 31, 469,\n: J.S. Shenk, M.O. Westerhaus, Crop Sci., 1991, 31, 1548.\n\n===Inputs===\n\n* '''x''' =  Standard model structure OR double OR DataSet object containing data to select from,\n* '''newdata''': Additional data which should be considered for addition to the data provided by model input. When provided, all ''model'' samples are used and ''newdata'' is examined for samples to fill in empty regions of the ''model'' space. Under these conditions, minsamples, is considered the number of additional samples to be selected above the number included in model (see minsamples below),\n* '''minsamples''': Minimum number of samples to retain. Sample thinning stops when the number of retained samples reaches this value. If omitted, 4 times the number of factors in the model or 1/2 the number of samples (whichever is smaller) is used.\n* '''''options''''' is a structure array with fields described below:\n\n===Outputs===\n\n* '''sc''' =  DataSet object containing either the scores (if a model was supplied) or the data supplied. Samples selected are included. Thinned samples are excluded.\n* '''incl''' =  Indices of retained samples (samples not thinned as redundant).\n\n===Options===\n\n'''''options''''' is a structure array with the following fields:\n* '''maxdistance''': [inf] Maximum allowed closest distance between samples. Sample thinning stops if the two closest samples are further away than this value. If \"inf\", thinning occurs until the number of samples given in minsamples is reached. If empty, the nearest distances are calculatd for the initial set and 1/2 of the maximum observed distance is used,\n* '''maxsamples''': [5000] Maximum number of samples which can be passed for down-sampling. More than this number will throw an error,\n* '''mustuse''': [] Indicies of samples which must be used,\n* '''waitbar''': [ 'no' | {'yes'} ] indicates whether a waitbar can be shown.\n\n===See Also===\n[[distslct]] [[doptimal]] [[knnscoredistance]] [[stdgen]] [[stdsslct]] [[splitcaltest]]"
                    }
                ]
            },
            "358": {
                "pageid": 358,
                "ns": 0,
                "title": "Reference Manual Style Guide",
                "revisions": [
                    {
                        "contentformat": "text/x-wiki",
                        "contentmodel": "wikitext",
                        "*": "The following style rules should be followed for all new reference manual entries. See the [[Reference Manual Template]] page for starting a new reference entry and [[Example Markup]] for a quick reference example of each of the typically used markups.\n\n==Main Sections==\nSection titles are wrapped with three equal signs, for example:\n:<nowiki>===Synopsis===</nowiki> \nand can include the following (note that this is also the order that these sections should appear in the body of the page:\n:'''Purpose''' (*) - short description of function purpose (from H1 line in m-file)\n:'''Synopsis''' (*) - I/O of use. Do NOT include calls to retrieve options, demo, or help\n:'''Description''' (*) - detailed description of use of function\n:'''Options''' - bulleted list of options\n:'''Algorithm''' - detailed description of algorithm used by function\n:'''Examples''' - brief code examples of how to use function (reserve long examples for demo)\n:'''See Also''' (*) - list of related functions\n\n(*) = required segment\n\n===Notes===\n* Include links to other functions or pages by providing the function name / page name in double square brackets:\n::<nowiki>[[pca]]</nowiki>\n* In all narratives, separate paragraphs by including an additional blank line between them:\n::This is paragraph one.\n::&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''blank line''\n::This is paragraph two.\n::&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;''blank line''\n\n\n==Description Sub-Topics==\nSome standard sub-topics can be used in the Description section. These sub-topic titles are wrapped with four equal signs, for example:\n:<nowiki>====Inputs====</nowiki> \nand include:\n:'''Inputs'''\n:'''Optional Inputs'''\n:'''Outputs'''\n\n===Notes===\n*The contents of these sections should be given as bulleted lists (i.e. start each line with an asterisk * ) with each input/output as a separate item in the list.\n*Input/output name should be bolded (i.e. surround with triple single quotes <nowiki>'''data'''</nowiki>\n*Follow the name with an equal sign and the concise description of the input/output:\n*Lists of possible values for a given input/output should be given using indenting (i.e. start the line with a colon : ) or using sub-bulleted lists (i.e. start the line with double asterisks ** )\n*These sub-topics are ''always plural'', even if there is only one item in the list (e.g. one output)\n\n===Example===\n<nowiki>*'''data''' = data matrix to be analyzed</nowiki>\n*'''data''' = data matrix to be analyzed\n\n\n==Options==\nOptions are listed as bulleted lists (i.e. start each line with an asterisk * )\n\n===Notes===\n*Name of option must be in bold (i.e. surround with triple single quotes <nowiki>'''display'''</nowiki>\n*Follow immediately by a colon : and then either the default value or the possible values (for fixed-option strings):\n** Double [ 3 ]\n** Empty  [ ]\n** Fixed-option double [ 1 |{2}]   (default shown with { } )\n** Fixed-option string [ 'off' |{'on'}]   (default shown with { } )\n*Complete the option line with a concise description of the option\n*If necessary, lists of possible values for a given option should be given using indenting (i.e. start the line with a colon : ) or using sub-bulleted lists (i.e. start the line with double asterisks ** )\n\n===Example===\n<nowiki>* '''plots''': ['none' | {'final'} ] Governs plotting.</nowiki>\n* '''plots''': ['none' | {'final'} ] Governs plotting.\n\n\n==Matlab Code==\nMatlab code can be included in the body of the description using either:\n\n1. Indenting (i.e. start line with a semicolon) - use for Synopsis section and for single lines of code in description\n\n:: :model = pca(data,3)\n\n2. Preformatted code using one of the methods below - use any time there are multiple lines of associated code shown together\n\n:2a. start line with one or more space characters\n:2b. wrap code in a &lt;pre&gt; &lt;/pre&gt; tag.\n:2c. if you need <tt>mono spaced text</tt> within the body of normal text use the <nowiki><tt> </tt></nowiki> (teletype) tag.\n\n===Example===\n&lt;pre&gt;\n\nopts = pca('options');\n\nopts.plots = 'none';\n\nmodel = pca(data,3,opts);\n\n&lt;/pre&gt;\n\n<pre>\n     opts = pca('options');\n     opts.plots = 'none';\n     model = pca(data,3,opts);\n</pre>\n\n\n\n==See Also==\n* See Also section should list related and similar functions\n* List should be in alphabetical order\n* Each item is a link to the function (enclose function names in double square brackets)\n\n===Example===\n<nowiki>[[analysis]], [[corrmap]], [[gcluster]], [[simca]]</nowiki>\n\n[[analysis]], [[corrmap]], [[gcluster]], [[simca]]"
                    }
                ]
            }
        }
    }
}