30+
years serving the scientific and engineering community
Log In
Buy Now
Try Origin for Free
Watch Videos
English
日本語
Deutsch
Toggle navigation
Products
PRODUCTS
Origin
OriginPro
Origin Viewer
All products
Origin vs. OriginPro
What's new in latest version
Product literature
SHOWCASE
Applications
User Case Studies
Video Tutorials
Graph Gallery
Animation Gallery
3D Function Gallery
FEATURES
2D&3D Graphing
Peak Analysis
Curve Fitting
Statistics
Signal Processing
Key features by version
LICENSING OPTIONS
Node-locked(fixed seat)
Concurrent Network (Floating)
Dongle
Academic users
Student version
Commercial users
Government users
Non-Profit users
Why choose OriginLab
Who's using Origin
What users are saying
Published product reviews
Online Store
Get a quote/Ordering
Find a distributor
Apps
Data Import
CSV Connector
Excel Connector
HTML Connector
HDF Connector
NetCDF Connector
Import NMR Data
Import PDF Tables
Google Map Import
Import Shapefile
More...
Graphing
Graph Maker
Correlation Plot
Paired Comparison Plot
Venn Diagram
Taylor Diagram
Volcano Plot
Kernel Density Plot
Chromaticity Diagram
Heatmap with Dendrogram
More...
Publishing
Graph Publisher
Send Graphs to PowerPoint
Send Graphs to Word
Send Graphs to PDF
Send Graphs to OneNote
Movie Creator
Graph Anim
More...
Curve Fitting
Simple Fit
Speedy Fit
Piecewise Fit
Fit ODE
Fit Convolution
Rank Models
Fitting Function Library
Neural Network Regression
Polynomial Surface fit
Global Fit with Multiple Functions
More...
Peak Analysis
Simple Spectroscopy
Peak Deconvolution
Pulse Integration
Align Peaks
Global Peak Fit
PCA for Spectroscopy
2D Peak Analysis
Gel Molecular Weight Analyzer
More...
Statistics
SPC
DOE
Stats Advisor
PCA
RDA
Bootstrap Sampling
Time Series Analysis
Factor Analysis
General Linear Regression
Logistic Regression
SVM Classification
More...
How do Apps work in Origin?
Suggest a New App
Purchase
New Orders
Renew Maintenance
Upgrade Origin
Contact Sales(US & Canada only)
Find a Distributor
Licensing Options
Node-locked(fixed seat)
Concurrent Network (Floating)
Dongle
Academic users
Student version
Commercial users
Government users
Non-Profit users
Why choose OriginLab
Purchasing FAQ
Support
SERVICES
Transfer Origin to new PC
License/Register Origin
Consulting
Training
Renew Maintenance
SUPPORT
Support FAQ
Help Center
Contact Support
Support Policy
DOWNLOADS
Service Releases
Origin Viewer
Orglab Module
Product Literature
Origin Trial
All downloads
VIDEOS
Installation and Licensing
Introduction to Origin
All video tutorials
DOCUMENTATION
User Guide
Tutorials
Python Programming
OriginC Programming
LabTalk Programming
All documentation
Communities
User Forum
User File Exchange
About Us
OriginLab Corp.
News & Events
Careers
Distributors
Contact Us
Contact Us
Log In
All Books
Non-Programming Books
User Guide
Tutorials
Quick Help
Origin Help
Programming Books
X-Function
Origin C
LabTalk Programming
Python
Python (External)
Automation Server
LabVIEW VI
Apps
App Development
Code Builder
License
Orglab
2.1.17.8 Vector Analysis
Functions
Name
Brief
Example
find_largest_gap
get the index of largest gap from value array, array must be sorted first
Examples
ocmath_b_copy
Copy a vector of type BYTE with given array of indices.
Examples
ocmath_check_order
Check a segment of curve's X value is monotonic increase, monotonic decrease, or not monotonic.
Examples
ocmath_compare_data
Compare two vectors or matrices cell by cell in predefined tolerance.
Examples
ocmath_d_copy
Copy a vector of type double with given array of indices.
Examples
ocmath_d_get_vector_inc
Check data monotonic increasing or decreasing with consistant increment or otherwise.
Examples
ocmath_d_stretch
Stretch (or squeeze) data in a vector or a matrix of type double by scaling all the data within a given range.
Examples
ocmath_f_copy
Copy a vector of type float with given array of indices.
Examples
ocmath_f_stretch
Stretch (or squeeze) data in a vector or a matrix of type double by scaling all the data within a given range.
Examples
ocmath_group_xy_by_x
This function separates XY data to groups according to their X values.
Examples
ocmath_i_get_vector_inc
Check data monotonic increasing or decreasing with consistant increment or otherwise.
Examples
ocmath_is_monotonic
Judge if a vector is (strictly) monotonic. Call the function IsOrdered of class NRVec to check the vector in (strictly) ascending(descending) order or not.
Examples
ocmath_linear_transform
Map data array slope [min, max] to [nMin, nMax] linearly
Examples
ocmath_replace_data_in_vector
Replace elements that match the condition in a vector
Examples
ocmath_simple_math
Perform arithmatic operation element-wised on two curves
Examples
ocmath_sort_xy
sort two double arrays with X sorted and Y to reorder accordingly
Examples
ocmath_ui_copy
Copy a vector of type UINT with given array of indices.
Examples
ocmath_us_copy
Copy a vector of type USHORT with given array of indices.
Examples
ocmath_us_stretch
Stretch (or squeeze) data in a vector or a matrix of type double by scaling all the data within a given range.
Examples
ocmath_xyzv_remove_duplicates
This function remove duplicated points and replace duplicated points by nMethod, where 0 means replace with mean, 1=median, 2=min, 3=max, 4=sum
Examples
vec_is_equal
Check if all elements in vector are equal
Examples
This section covers the following topics:
find_largest_gap
ocmath_b_copy
ocmath_check_order
ocmath_compare_data
ocmath_d_copy
ocmath_d_get_vector_inc
ocmath_d_stretch
ocmath_f_copy
ocmath_f_stretch
ocmath_group_xy_by_x
ocmath_is_monotonic
ocmath_i_get_vector_inc
ocmath_linear_transform
ocmath_replace_data_in_vector
ocmath_simple_math
ocmath_sort_xy
ocmath_ui_copy
ocmath_us_copy
ocmath_us_stretch
ocmath_xyzv_remove_duplicates
Basic
Statistics_(Vector Analysis)
vec_is_equal
Skip Navigation Links
All Books
Origin C
Origin C Reference
Global Functions
Mathematics
Vector Analysis
User Guide
Tutorials
Quick Help
Origin Help
X-Function
Origin C
LabTalk Programming
Python
Python (External)
Automation Server
LabVIEW VI
Apps
App Development
Code Builder
License
Orglab
Programming
Origin C Programming Guide
Origin C Reference
Examples
Origin Developer Kit
Build Dialogs using HTML and JavaScript
Global Functions
Classes
Macros
Typedef
Struct
Enum
Basic IO
Character and String Manipulation
COM
Communications
Curve
Data Conversion
Data Range
Date Time
File IO
File Management
Fitting
Image Processing
Import Export
Internal Origin Objects
LabTalk Interface
Math Functions
Mathematics
Matrix Conversion and Gridding
Memory Management
NAG Functions
Network
Signal Processing
Spectroscopy
Statistics
System
Tree
User Interface
Geometry
Curve
Differentiation
Integration
Interpolation
Linear System
Matrix Analysis
Vector Analysis
find_largest_gap
ocmath_b_copy
ocmath_check_order
ocmath_compare_data
ocmath_d_copy
ocmath_d_get_vector_inc
ocmath_d_stretch
ocmath_f_copy
ocmath_f_stretch
ocmath_group_xy_by_x
ocmath_is_monotonic
ocmath_i_get_vector_inc
ocmath_linear_transform
ocmath_replace_data_in_vector
ocmath_simple_math
ocmath_sort_xy
ocmath_ui_copy
ocmath_us_copy
ocmath_us_stretch
ocmath_xyzv_remove_duplicates
Basic
Statistics_(Vector Analysis)
vec_is_equal
English
|
Deutsch
|
日本語
© OriginLab Corporation. All rights reserved.
×
☐
_
Let's Chat