summaryrefslogtreecommitdiff
path: root/inst/arrays/@stk_dataframe/get.m
diff options
context:
space:
mode:
Diffstat (limited to 'inst/arrays/@stk_dataframe/get.m')
-rw-r--r--inst/arrays/@stk_dataframe/get.m14
1 files changed, 9 insertions, 5 deletions
diff --git a/inst/arrays/@stk_dataframe/get.m b/inst/arrays/@stk_dataframe/get.m
index cb76750..d45f809 100644
--- a/inst/arrays/@stk_dataframe/get.m
+++ b/inst/arrays/@stk_dataframe/get.m
@@ -2,6 +2,7 @@
% Copyright Notice
%
+% Copyright (C) 2020 CentraleSupelec
% Copyright (C) 2013 SUPELEC
%
% Author: Julien Bect <julien.bect@centralesupelec.fr>
@@ -11,7 +12,7 @@
% This file is part of
%
% STK: a Small (Matlab/Octave) Toolbox for Kriging
-% (http://sourceforge.net/projects/kriging)
+% (https://github.com/stk-kriging/stk/)
%
% STK is free software: you can redistribute it and/or modify it under
% the terms of the GNU General Public License as published by the Free
@@ -31,16 +32,19 @@ function value = get (x, propname)
icol = __get_column_number__ (x.colnames, propname);
switch icol
- case -4 % 'info'
+ case -5 % 'sample_size'
+ value = size (x.data, 1);
+
+ case -4 % 'info'
value = x.info;
- case -3 % 'rownames'
+ case -3 % 'rownames'
value = x.rownames;
- case -2 % 'colnames'
+ case -2 % 'colnames'
value = x.colnames;
- case -1 % get entire array
+ case -1 % Get entire array
value = x.data;
otherwise