text: /********************************************************************************** 
  Avatar Tools 
  Copyright (c) 2019, National Technology and Engineering Solutions of Sandia, LLC
  All rights reserved. 
  
  Redistribution and use in source and binary forms, with or without
  modification, are permitted provided that the following conditions are met:
  
  1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
  
  2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer  in the
    documentation and/or other materials provided with the distribution.
  
  
  3. Neither the name of the copyright holder nor the names of its
    contributors may be used to endorse or promote products derived from
    this software without specific prior written permission.
  
  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  
  For questions, comments or contributions contact 
  Philip Kegelmeyer, wpk@sandia.gov 
  *******************************************************************************/
  #ifndef AVATAR_API_H
  #define AVATAR_API_H
  
  // Forward declaration
  struct Avatar_struct;
  typedef struct Avatar_struct Avatar_handle;
  
  Avatar_handle* avatar_load(char* filestem, char* names_file, int names_file_is_a_string, char* trees_file, int trees_file_is_a_string);
  
  Avatar_handle* avatar_train(int argc, char ** argv, char* names_file, int names_file_is_a_string, char* train_file, int train_file_is_a_string);
  
  void avatar_test(Avatar_handle* a, char* test_data_file, int test_data_is_a_string, int* predictions, float *probabilities); 
  
  void avatar_cleanup(Avatar_handle* a);
  
  int avatar_num_classes(Avatar_handle* handle);
  
  #endif // AVATAR_API_H
  