| 1 |
#ifndef _MDS_h_ |
| 2 |
#define _MDS_h_ |
| 3 |
/* MDS.h |
| 4 |
* |
| 5 |
* Multi Dimensional Scaling |
| 6 |
* |
| 7 |
* Copyright (C) 1993-2020, 2026 David Weenink, 2015,2017,2018 Paul Boersma |
| 8 |
* |
| 9 |
* This code is free software; you can redistribute it and/or modify |
| 10 |
* it under the terms of the GNU General Public License as published by |
| 11 |
* the Free Software Foundation; either version 2 of the License, or (at |
| 12 |
* your option) any later version. |
| 13 |
* |
| 14 |
* This code is distributed in the hope that it will be useful, but |
| 15 |
* WITHOUT ANY WARRANTY; without even the implied warranty of |
| 16 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
| 17 |
* General Public License for more details. |
| 18 |
* |
| 19 |
* You should have received a copy of the GNU General Public License |
| 20 |
* along with this work. If not, see <http://www.gnu.org/licenses/>. |
| 21 |
*/ |
| 22 |
|
| 23 |
/* |
| 24 |
djmw 20020813 GPL header |
| 25 |
djmw 20110306 Latest modification. |
| 26 |
*/ |
| 27 |
|
| 28 |
#include "Covariance.h" |
| 29 |
#include "Correlation.h" |
| 30 |
#include "Graphics.h" |
| 31 |
#include "Minimizers.h" |
| 32 |
#include "Confusion.h" |
| 33 |
#include "ContingencyTable.h" |
| 34 |
#include "MDSVec.h" |
| 35 |
#include "TableOfReal_extensions.h" |
| 36 |
#include "Proximity.h" |
| 37 |
#include "Distance.h" |
| 38 |
#include "Configuration.h" |
| 39 |
#include "MDS_enums.h" |
| 40 |
|
| 41 |
/************************** class Weight **************************************/ |
| 42 |
|
| 43 |
Thing_define (Weight, TableOfReal) { |
| 44 |
}; |
| 45 |
|
| 46 |
autoWeight Weight_create (integer numberOfPoints); |
| 47 |
|
| 48 |
/************************** class Salience **************************************/ |
| 49 |
|
| 50 |
Thing_define (Salience, TableOfReal) { |
| 51 |
}; |
| 52 |
|
| 53 |
autoSalience Salience_create (integer numberOfSources, integer numberOfDimensions); |
| 54 |
|
| 55 |
void Salience_setDefaults (Salience me); |
| 56 |
|
| 57 |
integer Salience_correctNegatives (Salience me); |
| 58 |
|
| 59 |
void Salience_draw (Salience me, Graphics g, integer xdimension, integer ydimension, bool garnish); |
| 60 |
|
| 61 |
autoConfiguration ContingencyTable_to_Configuration_ca (ContingencyTable me, integer numberOfDimensions, integer scaling); |
| 62 |
|
| 63 |
#pragma mark - class ConfusionList |
| 64 |
|
| 65 |
Collection_define (ConfusionList, OrderedOf, Confusion) { |
| 66 |
TableOfRealList asTableOfRealList () { |
| 67 |
return reinterpret_cast <TableOfRealList> (this); |
| 68 |
} |
| 69 |
}; |
| 70 |
|
| 71 |
autoConfusion ConfusionList_sum (ConfusionList me); |
| 72 |
|
| 73 |
#pragma mark - class ScalarProduct |
| 74 |
|
| 75 |
Thing_define (ScalarProduct, TableOfReal) { |
| 76 |
}; |
| 77 |
|
| 78 |
autoScalarProduct ScalarProduct_create (integer numberOfPoints); |
| 79 |
|
| 80 |
#pragma mark - class ScalarProductList |
| 81 |
|
| 82 |
Collection_define (ScalarProductList, OrderedOf, ScalarProduct) { |
| 83 |
TableOfRealList asTableOfRealList () { |
| 84 |
return reinterpret_cast <TableOfRealList> (this); |
| 85 |
} |
| 86 |
}; |
| 87 |
|
| 88 |
#pragma mark - class Dissimilarity |
| 89 |
|
| 90 |
#pragma mark - class Transformator |
| 91 |
|
| 92 |
Thing_define (Transformator, Thing) { |
| 93 |
integer numberOfPoints; |
| 94 |
integer normalization; |
| 95 |
|
| 96 |
virtual autoDistance v_transform (MDSVec vec, Distance dist, Weight w); |
| 97 |
}; |
| 98 |
|
| 99 |
void Transformator_init (Transformator me, integer numberOfPoints); |
| 100 |
|
| 101 |
autoTransformator Transformator_create (integer numberOfPoints); |
| 102 |
|
| 103 |
void Transformator_setNormalization (Transformator me, integer normalization); |
| 104 |
|
| 105 |
autoDistance Transformator_transform (Transformator me, MDSVec vec, Distance dist, Weight w); |
| 106 |
|
| 107 |
Thing_define (ISplineTransformator, Transformator) { |
| 108 |
integer numberOfInteriorKnots, order, numberOfParameters; |
| 109 |
autoMAT m; |
| 110 |
autoVEC b, knot; |
| 111 |
|
| 112 |
autoDistance v_transform (MDSVec vec, Distance dist, Weight w) |
| 113 |
override; |
| 114 |
}; |
| 115 |
|
| 116 |
autoISplineTransformator ISplineTransformator_create (integer numberOfPoints, integer numberOfInteriorKnots, integer order); |
| 117 |
|
| 118 |
Thing_define (RatioTransformator, Transformator) { |
| 119 |
double ratio; |
| 120 |
|
| 121 |
autoDistance v_transform (MDSVec vec, Distance dist, Weight w) |
| 122 |
override; |
| 123 |
}; |
| 124 |
|
| 125 |
autoRatioTransformator RatioTransformator_create (integer numberOfPoints); |
| 126 |
|
| 127 |
Thing_define (MonotoneTransformator, Transformator) { |
| 128 |
kMDS_TiesHandling tiesHandling; |
| 129 |
|
| 130 |
autoDistance v_transform (MDSVec vec, Distance dist, Weight w) |
| 131 |
override; |
| 132 |
}; |
| 133 |
|
| 134 |
autoMonotoneTransformator MonotoneTransformator_create (integer numberPoints); |
| 135 |
|
| 136 |
void MonotoneTransformator_setTiesProcessing (MonotoneTransformator, kMDS_TiesHandling tiesHandling); |
| 137 |
|
| 138 |
/************** Kruskal *********************************************/ |
| 139 |
|
| 140 |
Thing_define (Kruskal, Thing) { |
| 141 |
autoConfiguration configuration; |
| 142 |
autoProximityList proximities; |
| 143 |
kMDS_TiesHandling tiesHandling; |
| 144 |
kMDS_KruskalStress stress_formula; |
| 145 |
autoMDSVec vec; |
| 146 |
autoMAT dx; |
| 147 |
autoMinimizer minimizer; |
| 148 |
}; |
| 149 |
|
| 150 |
autoKruskal Kruskal_create (integer numberOfPoints, integer numberOfDimensions); |
| 151 |
|
| 152 |
autoConfiguration Dissimilarity_to_Configuration_kruskal (Dissimilarity me, |
| 153 |
integer numberOfDimensions, integer metric, kMDS_TiesHandling tiesHandling, kMDS_KruskalStress stress_formula, |
| 154 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions); |
| 155 |
|
| 156 |
autoConfiguration Dissimilarity_Configuration_kruskal (Dissimilarity me, Configuration him, |
| 157 |
kMDS_TiesHandling tiesHandling, kMDS_KruskalStress stress_formula, |
| 158 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions); |
| 159 |
|
| 160 |
double Dissimilarity_Configuration_getStress (Dissimilarity me, Configuration him, kMDS_TiesHandling tiesHandling, kMDS_KruskalStress stress_formula); |
| 161 |
|
| 162 |
/******** end Kruskal **************************************************/ |
| 163 |
|
| 164 |
double Dissimilarity_Configuration_Weight_Transformator_normalizedStress (Dissimilarity me, Configuration conf, Weight weight, Transformator t); |
| 165 |
|
| 166 |
double Distance_Weight_stress (Distance fit, Distance c, Weight w, kMDS_stressMeasure type); |
| 167 |
/* |
| 168 |
Calculates stress. |
| 169 |
type is one of (MDS_NORMALIZED_STRESS, MDS_STRESS_1, |
| 170 |
MDS_STRESS_2, MDS_RAW_STRESS) |
| 171 |
*/ |
| 172 |
|
| 173 |
double Distance_Weight_congruenceCoefficient (Distance x, Distance y, Weight w); |
| 174 |
/* |
| 175 |
Congruence coefficient B&G page 350. |
| 176 |
*/ |
| 177 |
|
| 178 |
void Distance_Weight_rawStressComponents (Distance fit, Distance conf, Weight weight, double *out_eta_fit, double *out_eta_conf, double *out_rho); |
| 179 |
/* |
| 180 |
Computes |
| 181 |
eta_fit = sum (i<j,i=1..n; w [i] [j] * dfit [i] [j]^2) |
| 182 |
eta_conf = sum (i<j,i=1..n; w [i] [j] * conf [i] [j]^2) |
| 183 |
rho = sum (i<j,i=1..n; w [i] [j] * dfit [i] [j] * conf [i] [j]; |
| 184 |
where, |
| 185 |
dfit [i] [j] = transformation (dissimilarity [i] [j]) |
| 186 |
conf [i] [j] = distance between x [i] and x [j] (in the configuration) |
| 187 |
*/ |
| 188 |
|
| 189 |
double Dissimilarity_Configuration_Transformator_Weight_stress (Dissimilarity d, Configuration c, Transformator t, Weight w, kMDS_stressMeasure stressMeasure); |
| 190 |
|
| 191 |
double Dissimilarity_Configuration_Weight_absolute_stress (Dissimilarity d, Configuration c, Weight w, |
| 192 |
kMDS_stressMeasure stressMeasure); |
| 193 |
|
| 194 |
double Dissimilarity_Configuration_Weight_ratio_stress (Dissimilarity d, Configuration c, Weight w, |
| 195 |
kMDS_stressMeasure stressMeasure); |
| 196 |
|
| 197 |
double Dissimilarity_Configuration_Weight_interval_stress (Dissimilarity d, Configuration c, Weight w, |
| 198 |
kMDS_stressMeasure stressMeasure); |
| 199 |
|
| 200 |
double Dissimilarity_Configuration_Weight_monotone_stress (Dissimilarity d, Configuration c, Weight w, |
| 201 |
kMDS_TiesHandling tiesHandling, kMDS_stressMeasure stressMeasure); |
| 202 |
|
| 203 |
double Dissimilarity_Configuration_Weight_ispline_stress (Dissimilarity d, Configuration c, Weight w, |
| 204 |
integer numberOfInteriorKnots, integer order, kMDS_stressMeasure stressMeasure); |
| 205 |
|
| 206 |
void Distance_Weight_smacofNormalize (Distance d, Weight w); |
| 207 |
|
| 208 |
autoConfiguration Dissimilarity_Configuration_Weight_Transformator_smacof (Dissimilarity me, Configuration conf, Weight weight, Transformator t, |
| 209 |
double tolerance, integer numberOfIterations, bool showProgress, double *out_stress); |
| 210 |
|
| 211 |
autoConfiguration Dissimilarity_Configuration_Weight_Transformator_multiSmacof (Dissimilarity me, Configuration conf, Weight w, Transformator t, |
| 212 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 213 |
|
| 214 |
autoConfiguration Dissimilarity_Configuration_Weight_absolute_mds (Dissimilarity dis, Configuration cstart, Weight w, |
| 215 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 216 |
|
| 217 |
autoConfiguration Dissimilarity_Configuration_Weight_ratio_mds (Dissimilarity dis, Configuration cstart, Weight w, |
| 218 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 219 |
|
| 220 |
autoConfiguration Dissimilarity_Configuration_Weight_interval_mds (Dissimilarity dis, Configuration cstart, Weight w, |
| 221 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 222 |
|
| 223 |
autoConfiguration Dissimilarity_Configuration_Weight_monotone_mds (Dissimilarity dis, Configuration cstart, Weight w, kMDS_TiesHandling tiesHandling, |
| 224 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 225 |
|
| 226 |
autoConfiguration Dissimilarity_Configuration_Weight_ispline_mds (Dissimilarity me, Configuration cstart, Weight w, |
| 227 |
integer numberOfInteriorKnots, integer order, |
| 228 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress |
| 229 |
); |
| 230 |
|
| 231 |
autoConfiguration Dissimilarity_Weight_absolute_mds (Dissimilarity me, Weight w, integer numberOfDimensions, double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 232 |
|
| 233 |
autoConfiguration Dissimilarity_Weight_ratio_mds (Dissimilarity dis, Weight w, |
| 234 |
integer numberOfDimensions, double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 235 |
|
| 236 |
autoConfiguration Dissimilarity_Weight_interval_mds (Dissimilarity dis, Weight w, |
| 237 |
integer numberOfDimensions, double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress); |
| 238 |
|
| 239 |
autoConfiguration Dissimilarity_Weight_monotone_mds(Dissimilarity me, Weight w, |
| 240 |
integer numberOfDimensions, kMDS_TiesHandling tiesHandling, |
| 241 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress |
| 242 |
); |
| 243 |
|
| 244 |
autoConfiguration Dissimilarity_Weight_ispline_mds (Dissimilarity me, Weight weight, integer numberOfDimensions, |
| 245 |
integer numberOfInteriorKnots, integer order, |
| 246 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress |
| 247 |
); |
| 248 |
|
| 249 |
void Dissimilarity_Configuration_Weight_drawAbsoluteRegression (Dissimilarity d, Configuration c, Weight w, Graphics g, |
| 250 |
double xmin, double xmax, double ymin, double ymax, |
| 251 |
double size_mm, conststring32 mark, bool garnish |
| 252 |
); |
| 253 |
|
| 254 |
void Dissimilarity_Configuration_Weight_drawRatioRegression (Dissimilarity d, Configuration c, Weight w, Graphics g, |
| 255 |
double xmin, double xmax, double ymin, double ymax, |
| 256 |
double size_mm, conststring32 mark, bool garnish |
| 257 |
); |
| 258 |
|
| 259 |
void Dissimilarity_Configuration_Weight_drawIntervalRegression (Dissimilarity d, Configuration c, Weight w, Graphics g, |
| 260 |
double xmin, double xmax, double ymin, double ymax, |
| 261 |
double size_mm, conststring32 mark, bool garnish |
| 262 |
); |
| 263 |
|
| 264 |
void Dissimilarity_Configuration_Weight_drawMonotoneRegression (Dissimilarity d, Configuration c, Weight w, Graphics g, |
| 265 |
kMDS_TiesHandling tiesHandling, double xmin, double xmax, double ymin, double ymax, |
| 266 |
double size_mm, conststring32 mark, bool garnish |
| 267 |
); |
| 268 |
|
| 269 |
void Dissimilarity_Configuration_Weight_drawISplineRegression (Dissimilarity d, Configuration c, Weight w, Graphics g, |
| 270 |
integer numberOfInternalKnots, integer order, double xmin, double xmax, double ymin, double ymax, |
| 271 |
double size_mm, conststring32 mark, bool garnish |
| 272 |
); |
| 273 |
|
| 274 |
autoDistance Dissimilarity_Configuration_Transformator_Weight_transform (Dissimilarity d, Configuration c, Transformator t, Weight w); |
| 275 |
|
| 276 |
|
| 277 |
/******** DISTANCE & SCALARPRODUCT *******************************/ |
| 278 |
|
| 279 |
autoScalarProduct Distance_to_ScalarProduct (Distance me, bool normalize); |
| 280 |
|
| 281 |
|
| 282 |
/************** DISTANCE & PROXIMITY ********************************/ |
| 283 |
|
| 284 |
void Proximity_Distance_drawScatterDiagram (Proximity me, Distance thee, Graphics g, |
| 285 |
double xmin, double xmax, double ymin, double ymax, |
| 286 |
double size_mm, conststring32 mark, bool garnish |
| 287 |
); |
| 288 |
|
| 289 |
|
| 290 |
/********** COVARIANCE & CONFIGURATION ***************************/ |
| 291 |
|
| 292 |
autoConfiguration SSCP_to_Configuration (SSCP me, integer numberOfDimensions); |
| 293 |
|
| 294 |
autoConfiguration Covariance_to_Configuration (Covariance me, integer numberOfDimensions); |
| 295 |
|
| 296 |
|
| 297 |
/************ CORRELATION & CONFIGURATION ************************/ |
| 298 |
|
| 299 |
autoConfiguration Correlation_to_Configuration (Correlation me, integer numberOfDimensions); |
| 300 |
|
| 301 |
|
| 302 |
/************** DISTANCE & CONFIGURATION **************************/ |
| 303 |
|
| 304 |
autoDistance Configuration_to_Distance (Configuration me); |
| 305 |
/* Calculates distances between the points */ |
| 306 |
|
| 307 |
void Distance_Configuration_drawScatterDiagram (Distance me, Configuration him, Graphics g, double xmin, double xmax, double ymin, double ymax, double size_mm, conststring32 mark, bool garnish); |
| 308 |
|
| 309 |
autoConfiguration Distance_to_Configuration_torsca (Distance me, integer numberOfDimensions); |
| 310 |
|
| 311 |
|
| 312 |
/************** DISSIMILARITY & CONFIGURATION ************************/ |
| 313 |
|
| 314 |
void Dissimilarity_Configuration_drawShepardDiagram (Dissimilarity me, Configuration him, Graphics g, |
| 315 |
double xmin, double xmax, double ymin, double ymax, double size_mm, conststring32 mark, bool garnish); |
| 316 |
|
| 317 |
autoDistance Dissimilarity_Configuration_monotoneRegression (Dissimilarity dis, Configuration conf, kMDS_TiesHandling tiesHandling); |
| 318 |
|
| 319 |
autoDistanceList DissimilarityList_Configuration_monotoneRegression (DissimilarityList dissims, Configuration conf, kMDS_TiesHandling tiesHandling); |
| 320 |
|
| 321 |
void Dissimilarity_Configuration_drawMonotoneRegression (Dissimilarity me, Configuration him, Graphics g, kMDS_TiesHandling tiesHandling, double xmin, double xmax, double ymin, double ymax, double size_mm, conststring32 mark, bool garnish); |
| 322 |
|
| 323 |
|
| 324 |
/************** SIMILARITY & TABLESOFREAL ********************************/ |
| 325 |
|
| 326 |
autoSimilarity DistanceList_to_Similarity_cc (DistanceList me, Weight weight); |
| 327 |
|
| 328 |
autoSimilarity ConfigurationList_to_Similarity_cc (ConfigurationList me, Weight weight); |
| 329 |
|
| 330 |
|
| 331 |
/************** DISSIMILARITY & DISTANCE *************************************/ |
| 332 |
|
| 333 |
autoDistance Dissimilarity_to_Distance (Dissimilarity me, integer scale); |
| 334 |
/* with optional scaling with "additive constant" */ |
| 335 |
|
| 336 |
autoDistance Dissimilarity_Distance_monotoneRegression (Dissimilarity me, Distance thee, kMDS_TiesHandling tiesHandling); |
| 337 |
|
| 338 |
|
| 339 |
/************** DISSIMILARITY & CONFUSION ************************************/ |
| 340 |
|
| 341 |
autoDissimilarity Confusion_to_Dissimilarity_pdf (Confusion me, double minimumConfusionLevel); |
| 342 |
|
| 343 |
|
| 344 |
/************** DISSIMILARITY & SIMILARITY ***********************************/ |
| 345 |
|
| 346 |
autoDissimilarity Similarity_to_Dissimilarity (Similarity me, double maximumDissimilarity); |
| 347 |
|
| 348 |
|
| 349 |
/************** DISSIMILARITY & WEIGHT ***********************************/ |
| 350 |
|
| 351 |
autoWeight Dissimilarity_to_Weight (Dissimilarity me); |
| 352 |
|
| 353 |
|
| 354 |
/************** CONFUSION & SIMILARITY ***************************************/ |
| 355 |
|
| 356 |
autoSimilarity Confusion_to_Similarity (Confusion me, bool normalize, integer symmetrizeMethod); |
| 357 |
|
| 358 |
|
| 359 |
/************** DissimilarityList & DistanceList **********************************/ |
| 360 |
|
| 361 |
autoDissimilarityList DistanceList_to_DissimilarityList (DistanceList me); |
| 362 |
|
| 363 |
|
| 364 |
|
| 365 |
/************** DistanceList & Configuration ************************************/ |
| 366 |
|
| 367 |
void DistanceList_to_Configuration_ytl (DistanceList me, |
| 368 |
integer numberOfDimensions, integer normalizeScalarProducts, autoConfiguration *out1, autoSalience *out2); |
| 369 |
/* |
| 370 |
F.W. Young, Y. Takane & R. Lewyckyj (1978), Three notes on ALSCAL, |
| 371 |
Psychometrika 43, 433-435. |
| 372 |
|
| 373 |
w: numberOfSources x numberOfDimensions or null |
| 374 |
*/ |
| 375 |
|
| 376 |
autoDistanceList ConfigurationList_to_DistanceList (ConfigurationList me); |
| 377 |
|
| 378 |
|
| 379 |
/************** MDSVec(Lists) & Distance(List) **********************************/ |
| 380 |
|
| 381 |
autoDistance MDSVec_Distance_monotoneRegression (MDSVec me, Distance thee, kMDS_TiesHandling tiesHandling); |
| 382 |
|
| 383 |
autoDistanceList MDSVecList_Distance_monotoneRegression (MDSVecList me, Distance thee, kMDS_TiesHandling tiesHandling); |
| 384 |
|
| 385 |
|
| 386 |
/************** ScalarProduct(List) & ...... **********************************/ |
| 387 |
|
| 388 |
void ScalarProduct_Configuration_getVariances (ScalarProduct me, Configuration thee, double *varianceExplained, double *varianceTotal); |
| 389 |
|
| 390 |
void ScalarProductList_Configuration_Salience_vaf (ScalarProductList me, Configuration thee, Salience him, double *out_varianceAccountedFor); |
| 391 |
|
| 392 |
autoScalarProductList DistanceList_to_ScalarProductList (DistanceList me, bool normalize); |
| 393 |
|
| 394 |
void ScalarProductList_to_Configuration_ytl (ScalarProductList me, integer numberOfDimensions, autoConfiguration *out1, autoSalience *out2); |
| 395 |
|
| 396 |
void ScalarProductList_Configuration_Salience_indscal (ScalarProductList sp, Configuration conf, Salience weights, |
| 397 |
double tolerance, integer numberOfIterations, bool showProgress, autoConfiguration *out1, autoSalience *out2, double *out_varianceAccountedFor); |
| 398 |
|
| 399 |
|
| 400 |
/************** INDSCAL & ....... ***********************************/ |
| 401 |
|
| 402 |
void DissimilarityList_indscal (DissimilarityList me, integer numberOfDimensions, kMDS_TiesHandling tiesHandling, bool normalizeScalarProducts, |
| 403 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress, autoConfiguration *out1, autoSalience *out2); |
| 404 |
|
| 405 |
void DistanceList_to_Configuration_indscal (DistanceList me, integer numberOfDimensions, bool normalizeScalarProducts, |
| 406 |
double tolerance, integer numberOfIterations, integer numberOfRepetitions, bool showProgress, autoConfiguration *out1, autoSalience *out2); |
| 407 |
|
| 408 |
void DissimilarityList_Configuration_indscal (DissimilarityList me, Configuration conf, kMDS_TiesHandling tiesHandling, bool normalizeScalarProducts, |
| 409 |
double tolerance, integer numberOfIterations, bool showProgress, autoConfiguration *out1, autoSalience *out2); |
| 410 |
|
| 411 |
void DistanceList_Configuration_indscal (DistanceList dists, Configuration conf, bool normalizeScalarProducts, |
| 412 |
double tolerance, integer numberOfIterations, bool showProgress, autoConfiguration *out1, autoSalience *out2); |
| 413 |
|
| 414 |
void DissimilarityList_Configuration_Salience_indscal (DissimilarityList dissims, Configuration conf, Salience w, |
| 415 |
kMDS_TiesHandling tiesHandling, bool normalizeScalarProducts, |
| 416 |
double tolerance, integer numberOfIterations, bool showProgress, autoConfiguration *out1, autoSalience *out2, double *out_varianceAccountedFor); |
| 417 |
|
| 418 |
autoDistanceList MDSVecList_Configuration_Salience_monotoneRegression (MDSVecList vecs, Configuration conf, Salience weights, kMDS_TiesHandling tiesHandling); |
| 419 |
|
| 420 |
void DistanceList_Configuration_Salience_indscal (DistanceList dists, Configuration conf, Salience weights, bool normalizeScalarProducts, |
| 421 |
double tolerance, integer numberOfIterations, bool showProgress, autoConfiguration *out1, autoSalience *out2, double *out_varianceAccountedFor); |
| 422 |
|
| 423 |
void DistanceList_Configuration_Salience_vaf (DistanceList me, Configuration thee, Salience him, bool normalizeScalarProducts, double *out_varianceAccountedFor); |
| 424 |
|
| 425 |
void DissimilarityList_Configuration_Salience_vaf (DissimilarityList me, Configuration thee, |
| 426 |
Salience him, kMDS_TiesHandling tiesHandling, bool normalizeScalarProducts, double *out_varianceAccountedFor); |
| 427 |
|
| 428 |
void DistanceList_Configuration_vaf (DistanceList me, Configuration thee, bool normalizeScalarProducts, double *out_varianceAccountedFor); |
| 429 |
|
| 430 |
void DissimilarityList_Configuration_vaf (DissimilarityList me, Configuration thee, |
| 431 |
kMDS_TiesHandling tiesHandling, bool normalizeScalarProducts, double *out_varianceAccountedFor); |
| 432 |
|
| 433 |
autoSalience ScalarProductList_Configuration_to_Salience (ScalarProductList me, Configuration him); |
| 434 |
|
| 435 |
autoSalience DistanceList_Configuration_to_Salience (DistanceList me, Configuration him, bool normalizeScalarProducts); |
| 436 |
|
| 437 |
autoSalience DissimilarityList_Configuration_to_Salience (DissimilarityList me, Configuration him, |
| 438 |
kMDS_TiesHandling tiesHandling, bool normalizeScalarProducts); |
| 439 |
|
| 440 |
|
| 441 |
/********* Conversions from & to TableOfReal *****************************/ |
| 442 |
|
| 443 |
autoDissimilarity TableOfReal_to_Dissimilarity (TableOfReal me); |
| 444 |
|
| 445 |
autoSimilarity TableOfReal_to_Similarity (TableOfReal me); |
| 446 |
|
| 447 |
autoDistance TableOfReal_to_Distance (TableOfReal me); |
| 448 |
|
| 449 |
autoSalience TableOfReal_to_Salience (TableOfReal me); |
| 450 |
|
| 451 |
autoWeight TableOfReal_to_Weight (TableOfReal me); |
| 452 |
|
| 453 |
autoScalarProduct TableOfReal_to_ScalarProduct (TableOfReal me); |
| 454 |
|
| 455 |
|
| 456 |
/************** EXAMPLES ***************************************************/ |
| 457 |
|
| 458 |
autoDissimilarity Dissimilarity_createLetterRExample (double noiseRange); |
| 459 |
|
| 460 |
autoCollection INDSCAL_createCarrollWishExample (double noiseStd); |
| 461 |
|
| 462 |
autoSalience Salience_createCarrollWishExample (); |
| 463 |
|
| 464 |
void drawSplines (Graphics g, double low, double high, double ymin, double ymax, kMDS_splineType splineType, integer order, char32 const *interiorKnots, bool garnish); |
| 465 |
|
| 466 |
void drawMDSClassRelations (Graphics g); |
| 467 |
|
| 468 |
#endif /* _MDS_h_ */ |